 The castle, often besieged (notably by Simon de Montfort in 1211 and 1212), resisted assault and was only taken once, in 1486, thanks to treachery during the war between two branches of the Foix family.From the 14th century, the Counts of Foix spent less and less time in the uncomfortable castle, preferring the Governors' Palace ("Palais des gouverneurs").From 1479, the Counts of Foix became Kings of Navarre and the last of them, made Henri IV of France, annexed his Pyrrenean lands to France.