and, most importantly, by the Catholic Church and the pope. Afonso wed Mafalda of Savoy, daughter of Count Amadeus III of Savoy, and sent ambassadors to Rome to negotiate with the pope. He succeeded in renouncing the suzerainty of his cousin, Alfonso VII of León, becoming instead a vassal of the papacy, as the kings of Sicily and Aragon had done before him. In Portugal he built several monasteries and convents and bestowed important privileges to religious orders. He is notably the builder of Alcobaça Monastery, to which he called the Cistercian Order of his uncle Bernard of Clairvaux of Burgundy. In 1143, he wrote to Pope Innocent II to declare himself and the kingdom servants of the church, swearing to pursue driving the Moors out of the Iberian Peninsula. Bypassing any king of León, Afonso declared himself the direct liege man of the papacy. Afonso continued to distinguish himself by his exploits against the Moors, from whom he wrested Santarém (see Conquest of Santarém) and Lisbon in 1147 (see Siege of Lisbon). He also conquered an important part of the land south of the Tagus River, although this was lost again to the Moors in the following years. Meanwhile, King Alfonso VII of León regarded the independent ruler of Portugal as nothing but a rebel. Conflict between the two was constant and bitter in the following years. Afonso became involved in a war, taking the side of the Aragonese king, an enemy of Castile. To ensure the alliance, his son Sancho was engaged to Dulce of Aragon. Finally after winning the Battle of Valdevez, the Treaty of Zamora (1143) established peace between the cousins and the recognition by the Kingdom of León that Portugal was a fully independent kingdom. In 1169 the now old King Afonso was possibly disabled in an engagement near Badajoz, by a fall from his horse and slamming against the castle gate, and made prisoner by the soldiers of King Ferdinand II of León, his son-in-law. He spent months at the hot springs of São Pedro do Sul, but never recovered and from this time onward the Portuguese king never rode a horse again. However, it is not certain if this was because of the disability: according to the later Portuguese chronistic tradition, this happened because Afonso would have to surrender himself again to Ferdinand or risk war between the two kingdoms if he ever