 It was conquered and held by Sigurd I of Norway for a few months in 1108 in the Norwegian Crusade.After a period of Moorish occupation, forces loyal to Afonso Henriques conquered the region, as a sequence of their victory in Sintra, around 1147
The region remained in the hands of the Crown until 1385, when it was donated by John I to the "constable" Nuno Álvares Pereira to compensate the mercenary for his support against Castile.These lands returned to the crown following the death of Infanta Beatriz, mother of Manuel I.