Emirate of Aleppo and its environs, 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 (). 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 () 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 (), 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 () for additional payments. When the Fatimid governor refused, the 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==