The earliest settlement in the area was to the north of the present town, and known as El Pui de Segur. It was incorporated into the county of Pallars after Count Guillaume I of Toulouse conquered the region from the Moors in the ninth century. The town was transferred to its current location in the middle of the thirteenth century, and came under the control of Pere VII el Donzell, Viscount of Vilamur, in 1355. His son Pere VIII granted the first charter to the town in 1363. Control would later pass to the Dukes of Cardona.
The Comú de Particulars is a local cooperative, established in 1834 to manage a flour mill given to the town by the Duke of Cardona: open to natives of the town or their spouses, it is now a cultural organisation managing the income from the local hydroelectric power station. The Torre Maure is a notable group of modernista buildings from the start of the twentieth century.