The first document that mentions Andorra as a territory is the ''Acta de Consagració i Dotació de la Catedral de la Seu d'Urgell'' (Deed of Consecration and Endowment of the Cathedral of La Seu d'Urgell). The old document dated from 839 depicts the six old parishes of the Andorran valleys and therefore the administrative division of the country.