Flag abolished 1806
Andorra was part of Catalonia (first fully and then in condominium with France) and of course used the same flag. The Valleys of Andorra were given in fief by the Carolingian kings to the counts of Urgell in the VIIIth century, and given in fief by the counts to the Bishop of Urgell in 988. The counts Urgell were feudal subjects of the counts of Barcelona, who were furthermore de facto marquises and dukes of Septimania and Gothia and due to this had a prevalence to several small counties. The Urgell bishop sub-enfeoffed the valley to the Caboet dynasty, vicecounts of Castellbo, that after the death of the count Gaston Febus of Foix inherited this county. As the count was more powerful than the Bishop to which he was subject (and through the Bishop the Foix were subjects of the Catalan king and at the same time of the French king) were outlined frequent litigations until by duty of the Catalan crown were agreed the "pareatges" (double agreement) through which there was established the feudal condominium of both powers on the Valley, that is to say of Foix and of the Bishop of Urgell, feudatories of the French and Catalan kings.
The feudal lordship of the Foix happened to the French crown (of which the Republic is the declared successor, though its right is based on force and it has not yet found an acceptable legal – juridic, not political – recognition while there exist French kings). The Bishops of Urgell continue existing (if bishopric might have been extinguished, the right the right might have passed to the Catalan sovereigns, and from them, to the kings of Spain, but this never happened; now, after constitution, this will never occur.)