Qaraja's ambition to become an independent ruler manifested after al-Nasir Muhammad's death in 1341 and the consequent unrest in Egypt. He tried to gain Eretna's trust in order to organize a joint campaign to take over Aleppo. Emir Tashtimur of Aleppo requested assistance from Egypt, but this proved to be futile as Cairo was facing internal power struggles. The prominent Mamluk emir
Qawsun overthrew
Al-Mansur Abu Bakr and installed Abu Bakr's seven-year-old brother
Al-Ashraf Kujuk on the Mamluk throne. This led to Tashtimur's rebellion, who now found his situation reversed as he was pursued by the Mamluks and escaped to Eretna in the north with the protection of Qaraja. When
An-Nasir Ahmad briefly came to power amidst the political vacuum and invited Tashtimur, who supported him, to Cairo for a new appointment, Qaraja escorted him there. But Tashtimur was instead jailed and executed for unknown reasons, while Qaraja swiftly returned north. Qaraja's relations with the Mamluks further deteriorated in 1343, when the Dulkadir Turkomans robbed a
caravan containing Eretna's gifts to the Mamluk emir
Yalbugha, though Qaraja was able to get a pardon from the sultan. He led several incursions into the Armenian Kingdom of Cilicia, looting the region and occupying
Androun and
Kapan in 1345. In 1348, gaining confidence from his victories, he declared independence as
Malik al-Qāhir. Qaraja further joined emir
Baybugha's revolt against the Mamluk state and defeated Yalbugha. In response, Mamluk governors of Syria and rival Turkoman tribal leaders joined forces, supposedly raising 10 to 25 thousand troops. They ransacked Elbistan as well as the nearby villages, while Qaraja fled to
Mount Düldül. Two of his sons, including his successor Ghars al-Din Khalil Beg, tried to fend off the Mamluk forces but were defeated and captured. In 1353, Qaraja took refuge in the court of the Eretnid ruler
Ghiyath al-Din Muhammad I, but at the request of the Mamluks he was chained and sent to Aleppo on 22 September 1353, for which Muhammad was paid 500 thousand
dinars. One of Qaraja's sons agreed with the
Bedouin leader Jabbar bin Muhanna to attack Aleppo in order to save his father. This was unsuccessful and further angered
Sultan Salih, who demanded Qaraja's transfer to Cairo. Sultan Salih scolded him in person and kept him in the
Citadel of Cairo. After being imprisoned for 48 days, he was tortured to death on 11 December 1353. His corpse was left hanging in
Bab Zuweila for 3 days. Although disproven by medieval Arab historians, late
Ottoman sources, such as
Halil Edhem and
Ahmed Arifi Pasha, popularly believed that Qaraja continued to resist the Mamluks until he died of old age at around 100 in 1378 or 1379. ==Family==