The capture of Al Qaşr was the only permanent conquest of the Fifth Crusade. In 1218, Alcer do Sal received its foral from King Afonso II, and handed over to the Knights of Santiago, who made it their headquarters during their advance into the Alentejo and Algarve. The Order of Santiago dominated an area from Sesimbra until the Algarve, controlling the lower Sado, Alentejo Litoral and coast of Cape St. Vincent. At the end of the 13th century, the Order advanced to Mértola to support reconquest of the Algarve, but later retreated to Alcácer and remained there until 1482, when they returned to Palmela.