First term Although Ali Bey was officially , Abd al-Rahman, who lived in relative seclusion from daily politics, wielded actual power. Abd al-Rahman was neither a bey nor a mamluk, but a son of a mamluk, who were not favored in the mamluk system for advancement, and used Ali Bey as his political puppet. The limitation of his power by Abd al-Rahman, as well as by the Ottoman governor and the other mamluk beys, did not reconcile with Ali Bey's ambitions for total power. He resolved to eliminate his rivals, promote mamluks of his own household and engineer their appointments to powerful positions, and expand his sources of income. He began his thrust for power in 1763, when he exiled several officers of the janissaries from
Alexandria and arrested for ransom four priests in Alexandria. The following year, he may have engineered the poisoning death of Egypt's incoming governor before he could assume office. In 1765 he exiled Abd al-Rahman to the
Hejaz (western Arabia). In the meantime he was rapidly acquiring and promoting his mamluks, such that he had 3,000 mamluks and made eight of them beys by 1766.
Exile in Gaza Ali Bey's intensifying moves against the and fellow mamluk emirs and the empowerment of his own mamluks and tyrannical rule all brought about a check on his power by the Ottoman imperial government. It appointed a new governor, Hamza Pasha, with secret instructions to bring down Ali Bey. The governor invited Ali Bey's main mamluk rival, Husayn Bey Kashkash, back to Egypt from exile. Ali Bey made an abortive attempt to kill Husayn Bey by poisoning, but the plot was detected and prompted Husayn Bey and Hamza Pasha to retaliate by besieging Ali Bey in his palace. He was forced to step down as . Although he agreed to exile in
Medina, he took refuge in Gaza, on Egypt's border. In Gaza, Ali Bey established contact with the
Acre-based strongman of northern
Palestine,
Daher al-Umar, and gained the latter's support.
Second term Return to power The tyrannical rule of Khalil Bey and Husayn Bey led to Hamza Pasha facilitating Ali Bey's return to Egypt to use him as a check on the ruling beys' power. On 6 September 1766, Ali Bey and his top mamluks appeared at the Cairo houses of the leading beys and demanded their restoration to the mamluk decision-making council. The council's members did not readmit them, but allowed them to stay in Egypt, with Ali Bey banished to Nusat, where he was to live off its revenues, and the others in his party sent to Upper Egypt, where the powerful
Hawwara tribe was already hosting several mamluk exiles from the Qasimiya faction under Salih Bey. In February 1767, illicit communications between Ali Bey and his sympathizers in Cairo were detected, leading to the killings or exile of the sympathizers by the ruling beys and an order to exile Ali Bey to
Jeddah. Around the same time, however, Hamza Pasha moved against the mamluks, per orders from Constantinople. Although several beys were slain and Husayn Bey was wounded, the mamluks prevailed against the governor, whom they deposed. The imperial government soon after sent a new governor,
Rakım Mehmed Pasha, with orders to rein in the beys and prop up Ali Bey. Despite the threat he posed to them, Ali Bey was allowed by his mamluk rivals in power to join his mamluks in exile at
Asyut in Upper Egypt. There, the leader of the Hawwara, Sheikh Humam, brokered an alliance between Ali Bey and Salih Bey. The two now rebelled against Husayn Bey and Khalil Bey by blocking traffic along the
Nile River, preventing food supplies to Cairo from Upper Egypt, and stopping tax payments from the Upper Egyptian districts. After abortive expeditions from the ruling mamluks against Ali Bey and Salih Bey, the latter two launched their offensive, appearing before Cairo in autumn 1767. Rakım Mehmed Pasha, intent on toppling the beys, ordered the back to their barracks, thus depriving Husayn Bey and Khalil Bey of crucial military support. Without any actual fighting, Ali Bey and Salih Bey entered Cairo in October, while Khalil Bey and Husayn Bey left for Gaza. Rakım Mehmed Pasha recognized Ali Bey as and restored his subordinate beys to their former offices.
Elimination of rivals and advancement of allies Soon after, Ali Bey launched a campaign to eliminate his rivals. On 30 November 1767 he assassinated two top-ranking mamluks, Ali Bey Jinn and Hasan Bey, and followed it up by expelling from Egypt four other beys and their retinues. On 1 March 1768, he exiled some thirty officers, including eighteen high-ranking mamluks of his ally Salih Bey's household. In May, Husayn Bey and Khalil Bey launched a campaign against Ali Bey from Gaza, sweeping through the Nile Delta, before establishing base in
Tanta. Ali Bey obtained a
firman from Rakım Mehmed Pasha officially declaring them rebels, enabling him to use imperial funds against them, though he still imposed heavy exactions on the local and foreign merchants toward the same purpose.
Muhammad Bey Abu al-Dhahab and Salih Bey, confronted the rebels, who surrendered after running out of ammunition. Husayn Bey was beheaded, while Khalil Bey took refuge in the
Ahmad Al-Badawi Mosque until Ali Bey permitted him to enter exile in
Alexandria. There, in July 1768, he was strangled. For the remainder of the year, Ali Bey continued eliminating or substantially weakening rivals among the mamluks and in the ranks of the , especially the janissaries, who remained the only influential government military force in the province. By September, the French consul reported "never has the Janissary been reduced to the point it is today". That month, Ali Bey had Salih Bey assassinated, and soon after broke up his household, exiling his mamluks to Tanta,
Damietta, Jeddah, and Upper Egypt. With every move against his rivals, Ali Bey consolidated his hold over the military and bureaucracy in Egypt. All of the officers he eliminated were replaced by his own mamluks. He allowed the beys from his household to build up households of their own, while he acquired substantial numbers of new mamluks and commissioned mercenaries to supplement his forces. After Salih Bey's assassination, Ali Bey promoted three more of his mamluks as beys, appointed
Ismail Bey as defterdar, Ayyub Bey as governor of the major district of
Girga, and another of his mamluk beys, Hasan Bey Ridwan, as and (commander of Cairo). In September, he had assumed the office of , thereby attaining the executive powers of the governor during his absence. Crecelius notes by "combining the leadership of the mamluk regime with the executive functions of the Ottoman government Ali Bey had gained complete mastery of the Ottoman administration and reduced the governor to impotence". Rakım Mehmed Pasha attempted to depose Ali Bey in November by enlisting Muhammad Bey Abu al-Dhahab. The latter revealed the plot to Ali Bey, who then denounced and ousted the governor.
Revolt against Ottomans Ali Bey stopped the annual tribute to the
Sublime Porte and in an unprecedented usurpation of the Ottoman
Sultan's privileges had his name struck on local coins in 1769 (alongside the sultan's emblem), effectively declaring Egypt's independence from Ottoman rule. In 1770 he gained control of the Hejaz and a year later temporarily occupied
Syria, thereby reconstituting the Mamluk state that had disappeared in 1517. However, a few days after a major victory over the governor of
Damascus,
Uthman Pasha al-Kurji, by the allied forces of
Daher al-Umar and Ali Bey's forces on 6 June 1771, Abu al-Dhahab, the commander of his troops in Syria, refused to continue the fight after an Ottoman agent stirred up mistrust between him and Ali Bey, and hastily returned to Egypt. As a result, Ali Bey lost power in 1772. The following year, he was killed in Cairo. However, the date of 1772 is highly disputed; other sources and historians give varying dates for the end of Ali Bey's power in Egypt. Uzunçarşılı claims that he held power until 1773 (when
Kara Halil Pasha became governor), but
Sicill-i Osmani disagrees, saying that he fell out of power in 1769 and naming three interceding governors by name between the end of Ali Bey's reign in 1769 and Kara Halil Pasha's appointment in 1773; these are
Köprülü Hafız Ahmed Pasha (1769),
Kelleci Osman Pasha (1769–1771), and
Vekil Osman Pasha (1772–1773). First-person source
Al-Jabarti declares that Ali Bey gave up power in 1769 when a new governor from the Ottoman capital of
Istanbul was assigned by the sultan (although he doesn't name him). It is likely that Uzunçarşılı read Al-Jabarti's chronicle, but failed to note the narrative about the new governor coming from Istanbul in 1769, since after that, Al-Jabarti does not name any other pasha by name or sequence until 1773 with Kara Halil Pasha. However, according to Bidwell, "...he did not make use of native Egyptians or call in foreigners for technical advice. He made no effort to build a modern army..." == In fiction ==