french cerdagne (, ) is the northern half of cerdanya, which came under french control as a result of the treaty of the pyrenees in 1659, while the southern half remained in spain (as part of catalonia). catalans often refer to french cerdagne as upper cerdanya (). it is the only french territory in the iberian peninsula, as it is on the south side of the pyrenees range between spain and france. for example, the segre river, which goes west and then south to meet the ebro, has its source in the french cerdagne. an inadvertent result of the treaty of the pyrenees is the spanish exclave of llívia (the small uncolored area in the map) which is sovereign spanish territory completely surrounded by french cerdagne.