Llívia is a small Catalan town which is an exclave of Spain, being surrounded by France. The Spanish border is about one kilometre away. The town is part of Cerdanya, province of Girona. The French territory surrounding Llivia is the Pyrénées-Orientales "département". Llivia had a total population of 1252 in 2005.