After the conquest of Egypt the Ottoman sultan Selim I left the country, leaving his viceroy Khair Bey with a guard of 5,000 janissaries, but otherwise made few changes in the administration of the country. The country was regraded as a vassal state, not a province, of the empire.
The history of early Ottoman Egypt is a competition for power between the Mamelukes and the representatives of the Ottoman Sultan.
The register by which a great portion of the land was a fief of the Mamluks was left unchanged, allowing the Mamelukes to quickly return to positions of great influence. The Mameluke emirs were to be retained in office as heads of twelve sanjaks, into which Egypt was divided; and under the next sultan, Suleiman I, two chambers were created, called the Greater Divan and Lesser Divan, in which both the army and the ecclesiastical authorities were represented, to aid the pasha by their deliberations. Six regiments were constituted by the conqueror Selim for the protection of Egypt; to these Suleiman added a seventh, of Circassians.
In 1527 the first survey of Egypt under the Ottomans was made, the official copy of the former registers having perished by fire; this new survey did not come into use until 1605. Egyptian lands were divided into four classes: the sultans domain, fiefs, land for the maintenance of the army, and lands settled on religious foundations.
It was the practice of the Sublime Porte to change the governor of Egypt at very short intervals, after a year or even some months. The third governor, Ahmad Pasha, hearing that orders for this execution had come from Constantinople, endeavoured to make himself an independent ruler and had coins struck in his own name. His schemes were frustrated by two of the emirs whom he had imprisoned and who, escaping from their confinement, attacked him in his bath and killed him.
The constant changes in the government seem to have caused the army to get out of control at an early period of the Ottoman occupation, and at the beginning of the 17th century mutinies became common; in 1013 AH (1604) the governor Ibrahim Pasha was murdered by the soldiers, and his head set on the Bab Zuwaylah. The reason for these mutinies was the attempt made by successive pashas to put a stop to the extortion called the tulbah, a forced payment exacted by the troops from the inhabitants of the country by the fiction of debts requiring to be discharged, which led to grievous ill-usage.
In 1609 something like civil war broke out between the army and the pasha, who had on his side some loyal regiments and the Bedouins. The soldiers went so far as to choose a sultan, and to divide provisionally the regions of Cairo between them. They were defeated by the governor Mahommed Pasha, who on February 5, 1610 entered Cairo in triumph, executed the ringleaders, and banished many others to Yemen. The contemporary historian speaks of this event as a second conquest of Egypt for the Ottomans. A great financial reform was now effected by Muhammad Pasha, who readjusted the burdens imposed on the different communities of Egypt in accordance with their means.
With the troubles that beset the metropolis of the Ottoman empire, the governors appointed thence came to be treated by the Egyptians with continually decreasing respect. In July 1623 there came an order from the Porte dismissing Mustafa Pasha and appointing Ali Pasha governor in his place. The officers met and demanded from the newly-appointed governors deputy the customary gratuity; when this was refused they sent letters to the Porte declaring that they wished to have Mustafa Pasha and not Ali Pasha as governor. Meanwhile Ali Pasha had arrived at Alexandria, and was met by a deputation from Cairo telling him that he was not wanted. He returned a mild answer; and, when a rejoinder came in the same style as the first message, he had the leader of the deputation arrested and imprisoned. Hereupon the garrison of Alexandria attacked the castle and rescued the prisoner; whereupon Ali Pasha was compelled to embark. Shortly after a rescript arrived from Constantinople confirming Mustafa Pasha in the governorship.
Similarly in 1631 the army took upon themselves to depose the governor, in indignation at his execution of Kits Bey, an officer who was to have commanded an Egyptian force required for service in Persia. The pasha was ordered either to hand over the executioners to vengeance or to resign his place; as he refused to do the former he was compelled to do the latter, and presently a rescript came from Constantinople, approving the conduct of the army and appointing one Khalil Pasha as Mustafa's successor. Not only was the governor unsupported by the sultan against the troops, but each new governor regularly inflicted a fine upon his outgoing predecessor, under the name of money due to the treasury; and the outgoing governor would not be allowed to leave Egypt until he had paid it. Besides the extortions to which this practice gave occasion the country suffered greatly in these centuries from famine and pestilence. The latter in the spring of 1619 is said to have carried off 635,000 persons, and in 1643 completely desolated 230 villages.[citation needed]
By the 18th century the importance of the pasha was superseded by that of the Mameluk beys, and two offices, those of Sheikh al-Balad and Amir al-Hajj, which were held by these persons, represented the real headship of the community. The process by which this state of affairs came about is somewhat obscure, owing to the want of good chronicles for the Turkish period of Egyptian history. In 1707 the Sheikh al-Balad, Qasim Iywaz, is found at the head of one of two Mameluke factions, the Qasimites and the Fiqarites, between whom the seeds of enmity were sown by the pasha of the time, with the result that a fight took place between the factions outside Cairo, lasting eighty days. At the end of that time Qasim Iywaz was killed and the office which he had held was given to his son Ismail. Ismail held this office for sixteen years, while the pashas were constantly being changed, and succeeded in reconciling the two factions of Mamelukes. In 1724 this person was assassinated through the machinations of the pasha, and Shirkas Bey, of the opposing faction, elevated to the office of Sheikh al-Balad in his place. He was soon driven from his post by one of his own faction called Dhu-'l-Fiqar, and fled to Upper Egypt. After a short time he returned at the head of an army, and some engagements ensued, in the last of which Shirkas Bey met his end by drowning; Dhu-'l-Fiqar was himself assassinated in 1730 shortly after this event. His place was filled by Othman Bey, who had served as his general in this war.
In 1743 Othman Bey was forced to fly from Egypt by the intrigues of two adventurers, Ibrahim and Ridwan Bey, who, when their scheme had succeeded, began a massacre of beys and others thought to be opposed to them; they then proceeded to govern Egypt jointly, holding the two offices mentioned above in alternate years. An attempt by one of the pashas to remove these two by a coup d'état signally failed, owing to the loyalty of their armed supporters, who released Ibrahim and Ridwan from prison and compelled the pasha to flee to Constantinople. An attempt by a subsequent pasha in accordance with secret orders from Constantinople was so successful that some of the beys were killed. Ibrahim and Rilwan escaped, and compelled the pasha to resign his governorship and return to Constantinople. Ibrahim shortly afterwards was assassinated by someone who had aspired to occupy one of the vacant beyships, which was conferred instead on Ali, who as Ali Bey was destined to play an important part in the history of Egypt. The murder of Ibrahim Bey took place in 1755, and his colleague Ridwan perished in the subsequent disputes.
Ali Bey, who had first distinguished himself by defending a caravan in Arabia against bandits, set himself the task of avenging the death of his former master Ibraihim. He spent eight years in purchasing Mamelukes and winning other adherents, exciting the suspicions of the Sheikh al-Balad Khalil Bey, who organized an attack upon him in the streets of Cairo, in consequence of which he fled to Upper Egypt. Here he met one Salib Bey, who had injuries to avenge on Khalil Bey, and the two organized a force with which they returned to Cairo and defeated Khalil, who was forced to flee to Iaifla, where for a time he concealed himself; eventually he was discovered, sent to Alexandria and finally strangled. The date of Ali Bey's victory was 1164 AH (Ar. 1750), and after it he was made Sheikh al-Balad. He executed the murderer of his former master Ibrahim; but the resentment which this act aroused among the beys caused him to leave his post and flee to Syria, where he won the friendship of the governor of Acre, Daher El-Omar, who obtained for him the goodwill of the Porte and reinstatement in his post as Sheikh al-Balad.
In 1766, after the death of his supporter the grand vizier Raghib Pasha, he was again compelled to fly from Egypt to Yemen, but in the following year he was told that his party at Cairo was strong enough to permit of his return. Resuming his office he raised eighteen of his friends to the rank of bey, among them Ibrahim and Murad, who were afterwards at the head of affairs, as well as Muhammad Abu-'l-Dhahab, who was closely connected with the rest of Ali Beys career. He appears to have done his utmost to bring Egyptian affairs into order, and by very severe measures repressed the brigandage of the Bedouins of Lower Egypt. He appears to have aspired to found an independent monarchy, and to that end endeavoured to disband all forces except those which were exclusively under his own control. In 1769 a demand came to Ali Bey for a force of 12,000 men to be employed by the Porte in the Russian war. It was suggested, however, at Constantinople that Ali would employ this force when he collected it for securing his own independence, and a messenger was sent by the Porte to the pasha with orders for his execution. All, being apprised by his agents at the metropolis of the despatch of this messenger, ordered him to be waylaid and killed; the despatches were seized and read by Ali before an assembly of the beys, who were assured that the order for execution applied to all alike, and he urged them to fight for their lives. His proposals were received with enthusiasm by the beys whom be had created. Egypt was declared independent and the pasha given forty-eight hours to quit the country. Daher El-Omar Pasha of Acre, to whom was sent official information of the step taken by Ali Bey, promised his aid and kept his word by compelling an army sent by the pasha of Damascus against Egypt to retreat.
The Porte was not able at the time to take active measures for the suppression of Ali Bey, and the latter endeavoured to consolidate his dominions by sending expeditions against marauding tribes, both in north and south Egypt, reforming the finance, and improving the administration of justice. His son-in-law, Abu-'l-Dhahab, was sent to subject the Hawwarah, who had occupied the land between Aswan and Asyut, and a force of 20,000 was sent to conquer Yemen. An officer named Ismail Bey was sent with 8,000 to acquire the eastern shore of the Red Sea, and one named Ilasan Bey to occupy Jidda. In six months the greater part of the Arabian peninsula was subject to Ali Bey, and he appointed as Sharif of Mecca a cousin of his own, who bestowed on Ali by an official proclamation the titles Sultan of Egypt and Khan of the Two Seas. He then, in virtue of this authorization, struck coins in his own name (1185 A.H.) and ordered his name to be mentioned in public worship.
His next move turned out fatally. Abu-'l-Dhahab was sent with a force of 30,000 men in the same year (1771) to conquer Syria; and agents were sent to negotiate alliances with Venice and Russia. Abu-l-Dhahab's progress through Palestine and Syria was triumphant. Reinforced by Ali Bey's ally Daher El-Omar, he easily took the chief cities, ending with Damascus; but at this point he appears to have entered into secret negotiations with the Porte, by which he undertook to restore Egypt to Ottoman suzerainty. He then proceeded to evacuate Syria, and marched with all the forces he could collect to Upper Egypt, occupying Assiut in April 1772. Having collected some additional troops from the Bedouins, he marched on Cairo. Ismail Bey was sent by Ali Bey with a force of 3,000 to check his advance; but at Bastin Ismil with his troops joined Abu-'l-Dhahab. Ali Bey intended at first to defend himself so long as possible in the citadel at Cairo; but receiving information to the effect that his friend Daher El-Omar of Acre was still willing to give him refuge, he left Cairo for Syria (April 8, 1772), one day before the entrance of Abu-'l-Dhahab.
At Acre Ali's fortune seemed to be restored. A Russian vessel anchored outside the port, and, in accordance with the agreement which he had made with the Russian empire, he was supplied with stores and ammunition, and a force of 3,000 Albanians. He sent one of his officers, Ali Bey al-Tantawi, to recover the Syrian towns evacuated by Abu-'l-Dhahab, and now in the possession of the Porte. He himself took Jaffa. and Gaza, the former of which he gave to his friend Daher El-Omar of Acre. On the February 1, 1773 he received information from Cairo that Abu-'l-Dhahab had made himself Sheikh al-Balad, and in that capacity was practising unheard-of extortions, which were making Egypt with one voice call for the return of Ali Bey. He accordingly started for Egypt at the head of an army of 8,000 men, and on April 19 met the army of Abu-'l-Dhahab at Salihiyya. Ali's forces were successful at the first engagement; but when the battle was renewed two days later he was deserted by some of his officers, and prevented by illness and wounds from himself taking the conduct of affairs. The result was a complete defeat for his army, after which he declined to leave his tent; he was captured after a brave resistance, and taken to Cairo, where he died seven days later.
After Ali Bey's death Egypt became once more a dependency of the Porte, governed by Abu-'l-Dhahab as Sheikh al-Balad with the title pasha. He shortly afterwards received permission from the Porte to invade Syria, with the view of punishing Ali Beys supporter Daher El-Omar, and left as his deputies in Cairo Ismail Bey and Ibrahim Bey, who, by deserting Ali at the battle of Salihiyya, had brought about his downfall. After taking many cities in Palestine Abu-'l-Dhahab died, the cause being unknown; and Murad Bey (another of the deserters at Salihiyya) brought his forces back to Egypt (May 26, 1775).
Ismail Bey now became Sheikh al-Balad, but was soon involved in a dispute with Ibrahim and Murad, who after a time succeeded in driving Ismail out of Egypt and establishing a joint rule (as Sheikh al-Balad and Amir al-Hajj respectively) similar to that which had been tried previously. The two were soon involved in quarrels, which at one time threatened to break out into open war; but this catastrophe was averted, and the joint rule was maintained till 1786, when an expedition was sent by the Porte to restore Ottoman supremacy in Egypt. Murad Bey attempted to resist, but was easily defeated; and he with Ibrahim decided to fly to Upper Egypt and await the trend of events. On August 1 the Turkish commander entered Cairo, and, after some violent measures had been taken for the restoration of order, Ismail Bey was again made Sheikh al-Balad and a new pasha installed as governor. In January 1791 a terrible plague began to rage in Cairo and elsewhere in Egypt, to which Ismail Bey and most of his family fell victims. Owing to the need for competent rulers Ibrahim and Murad Bey were sent for from Upper Egypt and resumed their dual government. These two persons were still in office in 1798 when Bonaparte entered Egypt.