Llívia is a town in the comarca of Cerdanya, province of Girona, Catalonia, Spain. It is a Spanish exclave surrounded by the French départemen…Llívia is a town in the comarca of Cerdanya, province of Girona, Catalonia, Spain. It is a Spanish exclave surrounded by the French département of Pyrénées-Orientales. In 2023, the municipality of Llívia had a total population of 1,511. It is separated from the rest of Spain by a corridor about 1.6 km wide, which includes the French communes of Ur and Bourg-Madame. The Segre river, a tributary of the Spanish Ebro, flows through Llívia.