# Battle of al-Funaydiq

The Battle of al-Funaydiq took place on 30 August 1060, between the forces of the Fatimid Caliphate under Nasir al-Dawla Ibn Hamdan, and the forces of the renegade Mirdasid chieftain of the Banu Kilab, Mahmud ibn Nasr, who aimed to capture Aleppo. The battle was a comprehensive defeat for the Fatimids after their Bedouin allies switched sides, resulting in the capture of Ibn Hamdan and most of his commanders. As a result of the battle, Aleppo surrendered to Mahmud ibn Nasr, ending direct Fatimid rule over the city for good.

## Background

The Emirate of Aleppo in northern Syria had been a target of the Fatimid Caliphate since its first expansion in the region under Caliph al-Aziz (r. 975–996). After a series of confrontations with its Hamdanid rulers and the Byzantine Empire, which also claimed the city as its vassal, a permanent peace was reached in 1001 with a mutually acceptable modus vivendi that left Aleppo as a buffer state beholden to both Fatimids and Byzantines. This did not prevent both sides from trying to install their own candidates in Aleppo in the following years, the situation further complicated by the rulers of Aleppo trying to play both powers against each other, and the rising influence of the Bedouin tribe of the Banu Kilab, led by the Mirdasids, who pursued their own interests. Thus a period of direct Fatimid rule in 1017–1024 was followed by Mirdasid rule over the city, interrupted only in 1038–1042, when it was in the hands of the Fatimid commander-in-chief in Syria, Anushtakin al-Dizbari. After defeating Fatimid attacks against him in 1048 an 1050, Emir Mu'izz al-Dawla Thimal (r. 1042–1057, 1061–1062) managed to receive recognition from both Cairo and Constantinople, paying tribute to both.
As his rule became increasingly contested by his fellow Kilabi tribesmen, in January 1057 Thimal agreed to hand over Aleppo to a Fatimid governor, Ibn Mulhim, in exchange for the port cities of Byblos, Beirut, and Acre. The defeat of the Fatimid-sponsored attempt by al-Basasiri to capture Baghdad and end the Abbasid Caliphate in January 1060, had repercussions in Syria, where Fatimid prestige fell; the city of Rahba, which had been handed over by Thimal to serve as the expedition's base of operations, was captured by Thimal's brother Atiyya, with all the treasure and stores of arms kept there. At the same time, the Kilab decided to support Mahmud, a nephew of Thimal and son of the former emir Shibl al-Dawla Nasr (r. 1029–1038), as their candidate for recovering control of Aleppo itself. Along with his cousin, Mani ibn Muqallad, Mahmud launched an attack on the city in June 1060, but after seven days of fruitless combat, he was forced to retreat. However, Ibn Mulhim found himself confronted with the demands of the urban militia (ahdath) for additional payments. When the Fatimid governor refused, the ahdath rose in revolt in July and opened the gates of the city to Mahmud, while Ibn Mulhim sought refuge in the Citadel of Aleppo.

## Battle

Ibn Mulhim immediately sent to Cairo for help. The governor of Damascus, Nasir al-Dawla Abu Ali al-Husayn—son of the Fatimid commander who had led the failed attack in 1048—was tasked with suppressing the revolt. He moved to Homs, Baalbek, and then Apamea. The Kilab and Banu Khafaja Bedouin first moved to meet him, but through the intercession of Atiyya, they dispersed and retreated north to Qinnasrin. From Apamea, Nasir al-Dawla called upon the Kilab, who in theory were still Fatimid allies, to join him. He is said to have extracted forty consecutive oaths from those that appeared before him, to ensure their loyalty, before he moved on Aleppo, but at Sarmin the Kilab abandoned the Fatimid army and moved east, where the rest of the tribe were gathering.
In the meantime, in Aleppo, on 7 August most of the ahdath left the city to join the gathering Kilab. Ibn Mulhim retook possession of the lower city, which his Berber soldiers plundered. Some forty of the ahdath who had not left and were taken prisoner were executed; their bodies were publicly exposed at the crossroads of the city. So thorough was the despoliation by Ibn Mulhim's men, who knew the city well and thus were aware of where to look, that when Nasir al-Dawla arrived a few days later and wanted to loot the city himself, he was told that it was useless. He tried to oblige the Aleppines to pay him a bounty of 50,000 gold dinars for driving Mahmud away, but nothing came of it before the Fatimid army left to confront Mahmud's forces.
According to the 13th-century Aleppine historian Ibn al-Adim, Nasir al-Dawla had 15,000 horse with him, including not only Fatimid regular troops but also Bedouin allies from the Banu Kalb and Banu Tayy tribes, while Mahmud disposed of 2,000 men. The two armies met at a place called al-Funaydiq on Tell Sultan, on 30 August 1060. The battle turned into a rout for the Fatimid army: tormented by thirst, it was deserted by its Bedouin allies. Nasir al-Dawla and many of his commanders were taken prisoner along with most of their men who were not killed outright. A few soldiers managed to escape, after shedding their clothing.

## Aftermath

Already on the next day, Atiyya, who had not taken part in the battle, appeared at Aleppo and received the surrender of the lower city by Ibn Mulhim, who once again withdrew to the citadel. However, on the same evening, Mahmud appeared before the city with his men. Atiyya fled and Ibn Mulhim, bereft of any prospect of relief, capitulated on 9 September. Mahmud's son, and three more sons of Kilabi chieftains, were sent as hostages to Apamea, after which Ibn Mulhim exited the citadel. The Kilab escorted him safely to Apamea, before returning to Aleppo with the hostages. The loss of Aleppo also voided the agreement between the Fatimids and Thimal, as Caliph al-Mustansir (r. 1036–1094) informed the latter. This led to another internecine conflict among the Mirdasids, as Thimal sought to return to Aleppo and Mahmud refused to give up the city to his uncle. To gain the support of the Fatimids, he released Nasir al-Dawla and the other commanders captured at al-Funaydiq. In the event, the conflict was ended by a mediation of the Kilabi tribal elders: Thimal returned to Aleppo, while Mahmud was compensated with money. Atiyya, in the meantime, still in control of Rahba, proclaimed himself independent. The death of Thimal in 1062 reopened the succession struggle, which was ended only in 1065, with a de facto division of the Emirate of Aleppo between Mahmud and Atiyya.
The defeat at the battle of al-Funaydiq marked the definitive end of Fatimid ambitions for direct rule over Aleppo and northern Syria. However the city, which was still mostly populated by Shi'ites, retained the allegiance to the Fatimid caliphs, in whose name the sermon of the Friday prayer continued to be said. This lasted until 1070, when pressure from the Seljuk Empire led to the recognition of the Sunni Abbasid caliph instead.