The viscounts of Cerdanya and the others regions, like Conflent and Fenouillèdes, were the main antagonists of the comital power in Cerdanya throughout the 11th century. Briefly, William Raymond had to fight a war (successfully) with Giselbert II of Roussillon over the possession of the monastery of Cuixà, which Cerdanya had controlled throughout the 10th century, but in the main, the viscounts were the greatest military detriment to the counts of Cerdanya. Between 1088 and 1092, William founded Vilafranca de Conflent. William's successor, William Jordan, joined the First Crusade, and in his absence, the counts' authority was weakened still further. In 1118, Cerdanya was sold to Barcelona and only occasionally bestowed thereafter as appanage for younger sons.