In the course of political expansion and dominion, it was reconquered in the 12th century by D. Afonso Henriques who issued a foral (charter) for new settlers. Around 1163, though, it was donated to Gonçalo Mendes de Sousa, alcalde, who reconstructed the structure at his own cost.
In 1187, it was donated to the Order of the Knights Templar by King D. Sancho I.
This transfer was confirmed in a letter in 1300 by King D. Dinis. But, within a few years (1318) its title was transferred to the Order of Aviz. During this period the important construction of the keep tower, with its crown of merlons, was undertaken.
In 1370, during the reign of King D. Ferdinand, the men of Alcanede were free to participate in the work on the castle of Santarém, as long as they were able to maintain the walls in Alcanede.
A new foral was issued in 1514 by King D. Manuel, marking a period of prosperity for the town. In addition to the foral, the King also paid for part of the work on the castle and the parochial church, even as the extent of the interventions are largely unknown.
On 28 February 1531, the structure was totally destroyed during the course of an earthquake that affected the entirety of the Portuguese Estremadura. Losing much of its military function, the strategic importance decreased and there was little interest by the Crown or Order of Aviz to reconstruct the castle.
In 1936 the structure was discovered in a state of almost complete ruin, existing only "a few curtain walls in continuous disaggregation and two corners".
Work on recuperating and restoring the structure began in 1941 following the same vestiges that existed. Between 1944 and 1949 progress continued on repairing the walls, towers and barbican, including construction of a staircase and the vaulted ceiling in the tower. In 1954 new public works were undertake to consolidate the fortification, which were repeated in 1973, with repairs in the parapets of the walls.