is the capital of the comarca
, in the province of Girona
, located at 1,202 metres above the sea, by the river Segre
, not far from its start in the French
Cerdanya. Population 6,356 (1996).
It was founded circa 1177 by the king Alfonso I of Aragon.