 Hix, the place where the counts of Cerdanya resided, is now a village inside the commune of Bourg-Madame on the French side of the border.Hix had itself replaced Llívia, which was the ancient capital of Cerdanya in Antiquity.At the Treaty of the Pyrenees it was decided that Llívia would remain Spanish (allegedly because the treaty stipulated that only villages were to be ceded to France, and Llívia was considered a city and not a village, due to its status as the ancient capital of Cerdanya), so Llívia is now an exclave of Spain inside French territory.