Ibn Hafsun was born around 850 in the mountains near
Parauta in what is now Málaga. In his youth, he had a very violent temper and was involved in a number of disputes, including a homicide around the year 879. He joined a group of brigands and was captured by the
Vali of Málaga, who merely imposed a fine since he had not been informed of the homicide. The governor subsequently lost his post. Ibn Hafsun fled the jurisdiction to Morocco where he worked briefly as an apprentice tailor or stonemason. He soon returned to
al-Andalus as an outlaw and joined bandits who were in rebellion against Andalusian rule and soon rose to a leadership position. Originally he settled in the ruins of the old castle of
Bobastro (
bubastar). He rebuilt the castle, and fortified the nearby town of
Ardales. He rallied disaffected
Muwallads and
Mozarabs to the cause by playing off resentment towards the taxation levels imposed by and the treatment they were receiving at the hands of the
Emirate of Córdoba. He acquired castles and lands in a wide area not only in Malaga but also in portions of the Provinces of
Cádiz,
Elvira,
Jaén, and
Seville. By 883, he had become the leader of the rebels in the provinces to the south and the west of the
Emirate of Córdoba. The year before, in 882, he is said to have fought the Emir in a battle in which his ally,
García Íñiguez of Pamplona, was killed. Around 885, to be more centrally located so that he could more quickly respond to external threats, Ibn Hafsun moved his headquarters to the town of Poley, which is now
Aguilar de la Frontera. After Ibn Hafsun’s defeat by the forces of
Abdullah ibn Muhammad al-Umawi at the Battle of Poley in 891, he moved his headquarters back to Bobastro. In 898, Lubb ibn Muhammad, of the
Banu Qasi, was marching an army to support Umar when the death of his father at
Zaragoza forced Lubb to abandon the campaign. In 899, Ibn Hafsun renounced Islam and converted to Christianity. He was baptised as Samuel. He also built the
Iglesia Mozárabe ("Mozarab Church") at the Bobastro. Ibn Hafsun continued to be a serious threat to Córdoba. In 910, he offered allegiance to the newly established
Fatimid Caliphate of North Africa, and when
Abd-ar-Rahman III became Emir of Cordoba in 912, he instigated a policy of annual spring offensives against Ibn Hafsun by using mercenary troops. In 913 Abd ar-Rahman recaptured the city of
Seville, and by the end of 914, he had captured 70 of Ibn Hafsun’s castles. In 916, Ibn Hafsun joined forces with the Umayyads in a campaign against northern Christian kingdoms for an as of yet unknown reason, whether in contrition or merely as an expedient compromise. ==Notes==