It was reconquered from the Moors by El Cid in 1071.
The local Ribagorçan dialect is a variant of Catalan, which has some transitional traits to Aragonese.
... The average household size is 3.42 and the average family size is 3.67. In the town the population is spread out with 30.3% under the age of 18, 8.1% from 18 to 24, 29.9% ...