 The original territory was made up of the Alt Urgell, also known as Urgellet from the end of the 12th century onwards, with the see at La Seu d'Urgell.From 839 onwards it would include 129 villages, the valleys of the Valira river, namely Andorra and Sant Joan Fumat, the Segre riverine area as well as the valleys located between El Pont de Bar and Oliana.Its maximal extension territory was between the Pyrenees and the taifa of Lleida, that is, the current comarques of Alt Urgell or Urgellet, Noguera, Solsonès, Pla d'Urgell, Baix Urgell and the still independent country of Andorra.