At the end of the 9th century, the region of Portugal, between the rivers Minho and Douro, was reconquered from the Moors by the nobleman and knight Vímara Peres on the orders of King Alfonso III of Asturias. Finding that the region had previously had two major cities – Portus Cale in the coast and Braga in the interior, with many towns that were now deserted – he decided to repopulate and rebuild them with Portuguese and Galician refugees and other Christians.