After the excommunication of his brother Sancho II and the subsequent civil war, Alfonso III He occupied the throne of Portugal in 1248. Once the kingdom was pacified, the new monarch focused his forces on the conquest of the southern territories occupied by the Muslims. Once these were defeated,