In 1190, a major Almohad counter-offensive launched from Morocco under Abu Yusuf Ya'qub al-Mansur retook Marvão, during a campaign against the Templar stronghold of Tomar which would recapture for the Moors much of the Algarve and the Alentejo as far as the castle at Alcácer do Sal. Further, a famous victory for the Almohads in the Guadiana valley at Alarcos, in 1195, re-established Muslim control over many lands south of the Tagus (including Trujillo and Talavera). It is likely that Marvão at this point saw similar reinforcement of its fortifications, as seen at Cáceres and Trujillo.