at the Battle of Sagrajas (1086). However, Yusuf soon turned on the Muslim emirs of Spain, defeating them all and conquering their lands by 1091. A similar scenario occurred in 1147–1157, when the Almoravid dynasty fell, a Second Taifas period happened, and the Muslim-controlled cities of al-Andalus were conquered by the new Almohad Caliphate. The War of the Granada succession (1482–1492) took place after the deposition of emir Abu'l-Hasan Ali of Granada by his son Muhammad XII of Granada; the deposed emir's brother Muhammad XIII of Granada also joined the fight. This succession conflict took place simultaneously with the Granada War, and was ended only by the Castilian conquest in 1492. Christian repopulation The Reconquista was a process not only of war and conquest, but also of repopulation. Christian kings moved their own people to locations abandoned by Muslims in order to have a population capable of defending the borders. The main repopulation areas were the Douro Basin (the northern plateau), the high Ebro valley (La Rioja) and central Catalonia. The repopulation of the Douro Basin took place in two distinct phases. North of the river, between the 9th and 10th centuries, the "pressure" (or presura) system was employed. South of the Douro, in the 10th and 11th centuries, the presura led to the "charters" (forais or fueros). Fueros were used even south of the Central Range. The presura referred to a group of peasants who crossed the mountains and settled in the abandoned lands of the Douro Basin. Asturian laws promoted this system, for instance granting a peasant all the land he was able to work and defend as his own property. Of course, Asturian and Galician minor nobles and clergymen sent their own expeditions with the peasants they maintained. This led to very feudalised areas, such as Leon and Portugal, whereas Castile, an arid land with vast plains and harsh climate, only attracted peasants with no hope in Biscay. As a consequence, Castile was governed by a single count, but had a largely non-feudal territory with many free peasants. Presuras also appear in Catalonia, when the count of Barcelona ordered the Bishop of Urgell and the count of Gerona to repopulate the plains of Vic. During the 10th century and onwards, cities and towns gained more importance and power, as commerce reappeared and the population kept growing. Fueros were charters documenting the privileges and usages given to all