Following two months of siege, D. Afonso Henriques' forces took the fortress and likely began repairs on the fortifications, while settling partisans within the territory.
By the first half of the 13th century, the castle was one of the important defensive structures in the north of Lisbon. In 1211, King D. Sancho I constructed a royal palace and donated it to his daughter, Sancha, who would eventually take refuge there following a disagreement with her brother, the Infante D. Afonso II (who disagreed with their fathers gifting of the castle). She officially began living in Alenquer beginning in 1212, at which time D. Afonso II encircled the castle. In order to resolve the dispute between the siblings, Pope Innocent III placed the castle in charge of the Knights Templar in 1216, proving the military relevance of the structure at that time.
The castle's proprietorship passed in 1340, to D. Constância, wife of King D. Pedro I. At the beginning of this period, Alenquer began to be an integral part of the patrimony of the Portuguese Queens, being successively donated to sovereigns of the Kingdom. The work to build the structure were primarily instigated in the 14th century, by Queen Isabel when she began visiting the village. The majority of artefacts from the castle's construction indicate a chronological distinction during this Gothic period. The oval plan and keep tower addorsed to the walls were highlights of this style. The walls were covered by protected embattlements with rectangular merlons, and near the river, constructed as a defensive link to water resources was the "Torre da Couraça". It is likely that these 18 metres (59 ft) high structures were later to the castle and highly modified within the progressing years.
In 1384, Castilian forces take Alenquer, forcing the Master of Aviz, John I of Castile to lay siege to the fortress. After a period, the alcalde, Vasco Pires de Camões surrendered the fortifications, but as a reprisal for the former-alcalde's conspiracy against him, he ordered the removal of the cornerstones of the keep tower and lowered the walls.