 The historical capital was first la Seu d'Urgell and later Balaguer.The county of Urgell was extinguished and absorbed by the Crown of Aragon in 1413 as a part of the Principality of Catalonia, after the revolt of the last count, James II of Urgell, against the king Ferdinand I of Aragon.Sunifred II of Urgell (897-948) died without descendants and the county went to his nephew Borrell II, Count of Barcelona, Girona and Osona.