History of Andorra
In the 11th century, the Bishop of Urgell placed himself under the protection of the Lord of Caboet, a Catalan nobleman. Later, the Count of Foix  became heir to the Lord of Caboet through marriage in 1208. A dispute arose between the Occitan Count and the Catalan bishop over  Andorra.