Abd-ar-Rahman III
He suffered frequent raids into his territory from the armies of Abd-ar-Rahman III and he confronted the Castilians who were planning a revolt in León.