The Muslim invasion of al-Andalus in 711 is likely to have reached the area around Marvão during the Spring campaign of Abd al-Aziz in 714 CE (when Coimbra and Santarém were also captured). The invasion would herald five centuries of Islamic rule, until Marvão was captured by the Portuguese nation-builder Afonso I of Portugal in the 1160s.