Ahmad ibn Kayghalagh

Ahmad ibn Kayghalagh was an Abbasid military officer of Turkic origin who served as governor in Syria and Egypt. He was ousted as governor of Egypt by Muhammad ibn Tughj in 935.

Life
In 904 he participated in the victorious battle against the Qarmatians along with his brother, Ibrahim, under the command of Muhammad ibn Sulayman, for which the two brothers, as well as the other officers of the army, received robes of honour from Caliph al-Muktafi on 22 May.

After the Abbasids recovered Syria and Egypt from the Tulunids in 904–905, Ibn Kayghalagh was named governor of the provinces of Damascus and Jordan. Soon however he was sent to confront the pro-Tulunid rebellion of Muhammad ibn Ali al-Khalanji. The latter had managed to capture Fustat and proclaim the restoration of the Tulunids, while the local Abbasid commander withdrew to Alexandria. Al-Khalanji proved victorious in the first encounter with Ibn Kayghalagh at al-Arish in December 905, but in the end he was defeated and captured in May 906 and brought to Baghdad. In Ibn Kayghalagh's absence, the Qarmatians raided Jordan and defeated and killed Ibn Kayghalagh's deputy Yusuf ibn Ibrahim ibn Bughamardi, withdrawing only at the approach of reinforcements from Baghdad under al-Husayn ibn Hamdan.

On 22 October 906, he led the annual raid against the Byzantine Empire from Tarsus, joined by the local governor, Rustam ibn Baradu. According to al-Tabari, they defeated the Byzantines at "Salandu" and reached as far as the Halys River, making 4,000 or 5,000 captives and taking many horses and cattle as loot. In addition, one of the local Byzantine commanders reportedly surrendered himself and converted to Islam.

In July 923, Ibn Kayghalagh was appointed governor of Egypt, but soon faced a revolt from the troops of the garrison, who had been left unpaid, and was replaced by Takin al-Khazari in April 924. Takin died in March 933, but his son and designated successor, Muhammad, failed to establish his authority in the province. The governor of Damascus, Muhammad ibn Tughj, was named as the new governor in August but the appointment was revoked a month later, before he could reach Egypt. Ibn Kayghalagh was re-appointed in his place, while a eunuch called Bushri was sent to replace Ibn Tughj in Damascus as well. Ibn Tughj resisted his replacement, and defeated and took Bushri prisoner. The Caliph then charged Ibn Kayghalagh with forcing Ibn Tughj to surrender, but although the former marched against Ibn Tughj, both avoided a direct confrontation. Instead the two men met and reached an agreement of mutual support, upholding the status quo.

Ahmad ibn Kayghalagh soon proved incapable of restoring order to the increasingly turbulent Egypt. By 935, the troops were rioting over lack of pay, and Bedouin raids had recommenced. At the same time, Takin's son Muhammad and the fiscal administrator Abu Bakr Muhammad ibn Ali al-Madhara'i undermined Ibn Kayghalagh and coveted his position. Infighting broke out among the troops between the Easterners (Mashariqa), chiefly Turkish soldiers, who supported Muhammad ibn Takin, and the Westerners (Maghariba), probably Berbers and Black Africans, who backed Ibn Kayghalagh. Backed by powerful factions in Baghdad, Ibn Tughj was once more named governor of Egypt. Taking no chances, Ibn Tughj organized an invasion of the country by land and sea. Although Ibn Kayghalagh was able to delay the advance of Ibn Tughj's army, the latter's fleet took Tinnis and the Nile Delta and moved on to the capital Fustat. Outmanoeuvred and defeated in battle, Ahmad ibn Kayghalagh fled to the Fatimids. The victorious Muhammad ibn Tughj entered Fustat on 26 August 935. Nothing further is known of Ibn Kayghalagh after that, except for a brief mention of him in 936.