Qalawun was a
Kipchak (a
Turkic people living between the Black Sea and Caspian Sea) from the Burj Oghli () tribe, the same tribe as the earlier Mamluk sultan
Baybars. They were both probably sold into slavery during the
Mongol invasions of Kipchak territories in the 1220s and 1230s. When he was 14 years old, Qalawun was brought by slave merchants to Egypt, which was under
Ayyubid rule at the time. He was then purchased as a
mamluk (slave soldier) sometime in the 1230s or 1240s, by a mamluk
amir (commander) whom different historical sources name as either 'Ala al-Din Aqsunqur al-Kamili (a mamluk of
Sultan al-Kamil) or 'Ala al-Din Aqsunqur al-Saqi al-'Adili (a mamluk of
Sultan al-Adil). He was bought for the unusually high price of a thousand
dinars, which earned him the nickname
al-Alfī ("the Thousander"). Qalawun initially spoke little
Arabic, but he rose in power and influence, becoming an
emir under Sultan
Baibars, whose son,
al-Said Barakah, was married to Qalawun's daughter. Baibars died in 1277 and was succeeded by Barakah. In early 1279, as Barakah and Qalawun invaded the
Armenian Kingdom of Cilicia, a revolt in Egypt forced Barakah to abdicate upon his return home. He was succeeded by his brother
Solamish, but it was Qalawun, acting as
atabeg, who was the true holder of power. Because
Solamish was only seven years old, Qalawun argued that Egypt needed an adult ruler, and Solamish was sent into exile in
Constantinople in late 1279. As a result, Qalawun took the title
al-Malik al-Manṣūr ("the victorious king"). The governor of
Damascus,
Sunqur al-Ashqar, opposed Qalawun's ascent to power and declared himself sultan. Sunqur's claim of leadership, however, was repelled in 1280, when Qalawun defeated him in battle. In 1281, Qalawun and Sunqur reconciled as a matter of convenience when
Abaqa Khan, head of the
Ilkhanate, invaded Syria. Qalawun and Sunqur, working together, successfully repelled Abaqa's attack at the
Second Battle of Homs.
Barakah,
Solamish, and their brother Khadir were exiled to
al-Karak, the former
Crusader castle. Barakah died there in 1280 (it was rumored that Qalawun had him poisoned), and Khadir gained control of the castle, until 1286 when Qalawun took it over directly. In 1282 he founded
Ribat al-Mansuri, a
ribat (hospice) next to the in Jerusalem. The nearby was founded by Kurd al-Manṣūrī, a mamluk of Qalawun. ==Mamluk diplomacy==