Sancho I of Portugal
In 1186, after the death of Afonso I, King Sancho I of Portugal donated to the Order of Santiago the Portuguese dominions of Palmela, Almada and Alcácer do Sal, all in the Setúbal District, south of Lisbon), thus marking their return. But in 1190–91, all three citadels were conquered in an offensive led by the Almohad caliph Yaqub al-Mansur. They were recovered sometime between 1194 and 1204. The Order of Santiago established its Portuguese headquarters at Palmela shortly before 1210, and definitively by 1212.