علي بن يوسف
Under Yusuf's son and successor, Ali ibn Yusuf, Sintra and Santarém were added, and he invaded Iberia again in 1119 and 1121, but the tide had turned, as the French had assisted the Aragonese to recover Zaragoza. In 1138, Ali ibn Yusuf was defeated by Alfonso VII of León, and in the Battle of Ourique (1139), by Afonso I of Portugal, who thereby won his crown. Lisbon was conquered by the Portuguese in 1147.