the Umayyad prince al-Mundir, son of Mohamed I. Fighting occurred almost constantly between 875 and 883. The first Umayyad raids were aimed at León and El Bierzo, but failed. The Christian counteroffensive ended with the taking of Deza and Atienza. Abd al-Rahman ibn Marwan, the Galician, Lord of Mérida and rebel against the Emir of Córdoba, sent him to ingratiate himself with him to the Minister of this, Hashim ibn Abd al-Aziz. Accordingly, in 878, Al-Mundir directed his armies back to Leon and Astorga, while Salid ben Ganim reached the Órbigo. Alfonso, hoping to prevent the union of both armies, went out to meet the second, which he defeated in the battle of Polvoraria, at the confluence of the Órbigo and Esla rivers. Al-Mundir then withdrew, but Alfonso III intercepted him in the valley of Valdemora, where he defeated him. Mohamed was forced to pay ransom and sign a three-year truce, the first time that Córdoba had asked for peace. Both kings considered the truce as a pause while preparing for the next assault: Mohamed raised a fleet to attack Galicia, but it was destroyed by a storm. Alfonso and Ibn Marwan descended through the Tagus Valley and defeated the Cordovan army on Mount Oxifer, next to the Guadiana River. As revenge, Mohamed attacked the kingdom of Zaragoza in 882, where Alfonso had sent his son Ordoño to be educated with the Banu Qasi, sons of Musa, advancing through the ancient Roman road to Leon. There was an exchange of prisoners and the Cordovans withdrew. They repeated the campaign in 883 with the same result. In 884 Mohamed I and Alfonso III signed a peace, since both began to have serious internal problems. The great king was met with a rising led by his brothers Fruela, Odoario and Bermudo, who became strong in Astorga, supported by several counts, but were quickly defeated and executed. In 901 the Umayyad rebel Ibn al-Qitt proclaimed Mahdi, preached holy war and attacked Zamora - "rebuilt and repopulated by Mozarabic Toledo [...] the most important advanced square of the Asturian kingdom" - which he was able to resist. The messianic leader, abandoned by his own, was defeated and killed in battle on what is known as the Day of Zamora. In those years, the emirate of Cordoba, wracked by civil disorder, stopped disturbing the kingdom of Asturias. Alonso faced off against his former allies in