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.
... 12.7% who are 65 years of age or older. The median age is 39 years. For every 100 females there are 104.2 males. For every 100 females age 18 and over, there are 97.8 ...