influential-warriors-and-leaders
The Mamluk Sultanate’s Role in Protecting the Islamic Holy Cities of Mecca and Medina
Table of Contents
The Mamluk Sultanate’s Role in Protecting the Islamic Holy Cities of Mecca and Medina
The Mamluk Sultanate, which dominated Egypt, Syria, and the Hejaz from the mid-13th century until the Ottoman conquest in 1517, served as the principal guardian of Islam’s two holiest cities—Mecca and Medina. This responsibility was not merely symbolic; it involved military defense, logistical management of the annual pilgrimage, and the projection of religious legitimacy across the Muslim world. The Mamluks, themselves former slave soldiers who seized power, understood that control over the holy cities conferred unmatched prestige and political authority. Their nearly three centuries of custodianship ensured that Mecca and Medina remained secure, accessible, and spiritually vibrant during a period marked by Mongol invasions, Crusader remnants, and emerging European maritime powers.
Historical Context of the Mamluk Sultanate
The Mamluks emerged as a military elite in the Ayyubid Sultanate, eventually overthrowing their masters and establishing their own dynasty in 1250. Their military prowess, honed through rigorous training and martial culture, made them formidable defenders of the Islamic world. After the Mongol sack of Baghdad in 1258, the Mamluks positioned themselves as the foremost Sunni power, inheriting the mantle of the Abbasid Caliphate by installing a puppet caliph in Cairo. This move gave them religious authority over vast territories, including the Hejaz, where Mecca and Medina lay. The sultans in Cairo routinely emphasized their duty to protect the Haramayn (the two sanctuaries) as a core element of their sovereignty.
From the outset, the Mamluks faced a world of competing threats: the Mongol Ilkhanate to the east, the Crusader states along the Levant coast, and later the Portuguese incursions into the Indian Ocean. Each of these powers, at one time or another, menaced the routes to the holy cities or directly threatened the Hejaz. The Mamluks responded with a combination of military campaigns, fortress building, and diplomatic maneuvering that preserved Islamic control over Mecca and Medina.
The Mamluks as Custodians of the Holy Cities
The Strategic and Religious Significance
Mecca—the birthplace of the Prophet Muhammad and site of the Kaaba—and Medina—the city of the Prophet’s migration and his tomb—are the most sacred sites in Islam. Control over these cities meant influence over the global Muslim community. The annual Hajj pilgrimage, one of the Five Pillars of Islam, required safe passage for hundreds of thousands of believers from diverse lands. Any disruption to the pilgrimage could delegitimize a ruler and spark unrest. The Mamluks understood that their claim to lead the Sunni world depended on their ability to secure these cities and facilitate the Hajj.
Moreover, the Hejaz region itself was economically and strategically important. It sat astride trade routes connecting the Indian Ocean with the Mediterranean. The port of Jeddah, the gateway for pilgrims arriving by sea, became a vital node under Mamluk administration. By controlling the Hejaz, the Mamluks could regulate the flow of pilgrims, merchants, and information, reinforcing their authority over the broader Islamic world.
The Mamluk Claim to Legitimacy through the Caliphate
Following the Mongol destruction of the Abbasid Caliphate in Baghdad, the Mamluks invited a surviving Abbasid prince to Cairo and installed him as caliph under their protection. This shadow caliphate lent religious legitimacy to Mamluk rule, particularly regarding the holy cities. The caliph in Cairo would formally confirm Mamluk sultans as protectors of the Haramayn. Each new sultan sought the caliph’s endorsement, and in turn the sultan provided financial and military support to the holy cities. This symbiotic relationship allowed the Mamluks to present themselves as the true defenders of Sunni Islam, distinct from other Muslim powers like the Timurids or the Delhi Sultanate.
Mamluk historians frequently recorded the sultans’ benefactions to Mecca and Medina—sending gifts of grain, gold, and cloth for the Kaaba’s covering (the kiswa). These acts were publicized across the empire to reinforce the sultan’s piety and the state’s commitment to protecting the sanctuaries.
Military Defenses and Pilgrim Protection
Fortifications and Garrisons
The Mamluks invested heavily in fortifying the Hejaz. While Mecca and Medina lacked the massive defensive walls of Cairo or Damascus, the Mamluks strengthened key positions along the pilgrimage routes. Fortresses were built or repaired at points such as Aqaba, Tabuk, and al-Bad’ to guard the Syrian Hajj route. The port of Jeddah received fortifications to defend against naval threats, especially after the arrival of Portuguese warships in the Indian Ocean in the early 16th century.
Mamluk garrisons were stationed in both cities and along the main routes. These troops enforced order, suppressed rebellions by local Bedouin tribes, and ensured that no external force could seize the holy sites. The commanders of these garrisons were appointed directly by the sultan and reported to Cairo, bypassing the local Sharif. This centralized control allowed the Mamluks to respond quickly to any crisis.
The Hajj Caravan Escorts
One of the most visible manifestations of Mamluk protection was the armed escort provided for the annual Hajj caravans. Two main caravans departed each year—one from Cairo (the Egyptian mahmal) and one from Damascus (the Syrian mahmal). These caravans could number tens of thousands of pilgrims and thousands of soldiers. The Mamluks assigned a high-ranking amir (commander) to lead each caravan, with full authority to protect pilgrims from Bedouin bandits, disease, and water shortages.
The Mamluk sultans often participated personally in equipping the caravans, donating funds for water wells, rest stops, and repairs to cisterns along the desert routes. In times of war, the sultan would increase the military escort to ensure that no threat—whether from the Mongols, Bedouin, or later the Portuguese—could prevent pilgrims from completing their journey. This system remained largely effective throughout Mamluk rule and was later adopted by the Ottomans.
Combating Bedouin Raids
The Bedouin tribes of the Hejaz and surrounding deserts posed a constant challenge. They often extorted pilgrims, blocked routes, or looted caravans. The Mamluks employed a dual strategy of force and diplomacy. Military campaigns punished rebellious tribes, but the Mamluks also co-opted chiefs by granting them stipends, titles, and control over certain routes. The most powerful Bedouin confederations, such as the Bani Harb and Bani Shammar, were integrated into the Mamluk system through marriage alliances and subsidies.
However, the relationship was tense. When a sultan was weak, Bedouin depredations increased. The Mamluks responded by building more forts and stationing permanent garrisons at key wells. They also stationed scouts along the pilgrimage routes to give early warning of Bedouin movements. These measures, while imperfect, maintained a degree of security that made the Hajj possible for millions over two and a half centuries.
External Threats and Mamluk Responses
The Mongol Threat: From Ain Jalut to the Hejaz
The Mongols under Genghis Khan and his successors had destroyed the Islamic heartlands of Persia and Iraq. After the fall of Baghdad, the Mamluk victory at the Battle of Ain Jalut in 1260—led by Sultan Qutuz and his general Baybars—halted Mongol expansion westward. This victory was widely celebrated as a defense of Islam itself, and it secured the holy cities from direct Mongol invasion. However, the Mongols continued to threaten through their Ilkhanate state in Iran.
The Mamluks maintained a buffer zone in Syria and used diplomatic means, including correspondence with Mongol khans, to deter attacks on the Hejaz. In 1281, the Mamluks again defeated the Mongols at the Second Battle of Homs. These victories kept the Mongols out of the Syrian desert and away from the pilgrimage routes. The Mamluks also allied with the Mongol Golden Horde, which had converted to Islam, to pressure the Ilkhanate from the north. By the early 14th century, the Ilkhanate had disintegrated, removing the primary external threat to the holy cities.
The Crusader Presence in the Red Sea
Although Crusader states had largely fallen by 1291, Crusader naval power remained in the eastern Mediterranean. Some Crusader leaders dreamed of striking at the heart of Islam by seizing Mecca or Medina. The Mamluks took these threats seriously. After the fall of Acre in 1291, the Mamluks fortified the Red Sea coast and established a naval squadron at Jeddah to intercept any Christian raiders.
In fact, in 1269, Sultan Baybars led a campaign to secure the Hejaz against rumors of a Crusader invasion. He personally visited Mecca and Medina, restored the walls around Medina, and appointed loyal governors. No major Crusader attack ever materialized, but the Mamluks’ vigilance ensured that the holy cities were never directly threatened by the remnants of the Crusader states.
The Portuguese Threat in the Indian Ocean
By the early 16th century, the greatest external threat came from the Portuguese, who had entered the Indian Ocean and sought to control the spice trade. In 1505, a Portuguese fleet under Francisco de Almeida attacked Muslim shipping near the Red Sea. In 1513, the Portuguese governor Afonso de Albuquerque attempted to capture the port of Aden and then considered an assault on Jeddah and Mecca. This was a direct challenge to the Mamluks’ role as protectors of the holy cities.
The Mamluks responded by building a new navy in the Red Sea, sending shipbuilders and timber from Egypt. They allied with the Gujarat Sultanate and the Zamorin of Calicut to resist the Portuguese. In 1511, a Mamluk fleet under Husain al-Kurdi fought the Portuguese off Chaul, and later at Diu in 1509 the Mamluks were defeated. However, the Mamluks managed to prevent the Portuguese from ever entering the Red Sea or attacking Jeddah. The Portuguese threat was only finally neutralized after the Ottoman conquest of Egypt in 1517, when the Ottomans took over the defense of the Hejaz.
Administrative and Religious Policies
Appointment of the Sharif of Mecca
The Mamluks recognized the importance of the local Hashemite sharifs—descendants of the Prophet—who had long governed Mecca. Rather than replace them, the Mamluks integrated the sharifs into their imperial system. Each Mamluk sultan appointed the Sharif of Mecca, usually from the Banu Hasan or Banu Qatada families, and confirmed his authority in exchange for loyalty and tribute. The sharif was responsible for day-to-day administration of Mecca, the maintenance of the Haram, and the reception of pilgrims. However, the Mamluk sultan retained ultimate authority and could depose a disobedient sharif.
This arrangement gave the Mamluks indirect control while respecting local traditions. The sharifs acted as intermediaries between the Mamluk state and the Bedouin and urban populations of the Hejaz. The system worked well for centuries, with the Mamluk sultans often intervening only in times of crisis or when a sharif became too powerful.
Patronage of Religious Institutions and Architecture
The Mamluks poured wealth into Mecca and Medina. They financed the expansion of the Great Mosque of Mecca and the Prophet’s Mosque in Medina. Sultan Qalawun built a hospital in Mecca and Sultan al-Nasir Muhammad endowed a madrasa (theological school) near the Haram. They also sent skilled craftsmen from Cairo to restore and embellish the sanctuaries. The kiswa—the black silk cloth covering the Kaaba—was woven in a special factory in Cairo and sent annually to Mecca, a powerful symbol of Mamluk patronage.
In addition to buildings, the Mamluks provided ongoing financial support for the ulema (religious scholars) and servants of the Haram. Many Mamluk sultans established waqfs (charitable endowments) that generated income for the upkeep of the holy cities. These endowments supported water distribution, bread for the poor, and salaries for the imams and preachers. This patronage tied the elites of the Hejaz directly to the Mamluk court and reinforced the sultans’ image as protectors of the faith.
Economic Support for Pilgrims
The Mamluks understood that the pilgrimage was an essential religious duty and a massive economic enterprise. They regulated the prices of food, water, and transport to prevent exploitation. They also established funds to help poor pilgrims complete the Hajj. In Cairo, the Mahmal procession included a chest of gold coins donated by the sultan to be distributed among the needy in Mecca and Medina.
During times of famine or epidemic, the Mamluks sent emergency grain shipments to the Hejaz. In 1354, a severe drought caused a bread shortage in Mecca; the Mamluk sultan ordered a vast shipment of wheat from Egypt, which saved countless lives. Such actions reinforced the idea that the Mamluks were the indispensable protectors of the holy cities, willing to sacrifice state resources for the welfare of pilgrims and residents.
Legacy and Transition to Ottoman Rule
The End of the Mamluk Sultanate and Ottoman Continuity
The Mamluk Sultanate fell to the Ottoman Empire in 1517 after the Battle of Marj Dabiq and the capture of Cairo. The Ottomans, under Sultan Selim I, immediately sought to legitimize their rule by claiming the title of Caliph and protector of the Haramayn. The last Abbasid caliph in Cairo formally transferred the caliphate to Selim, and the Ottomans adopted many Mamluk practices regarding the holy cities. The system of appointing the Sharif of Mecca, the annual mahmal caravans, and the dispatch of the kiswa all continued under Ottoman rule.
The Mamluks themselves did not disappear; they became powerful local governors within the Ottoman Empire, especially in Egypt. Some Mamluk households continued to influence the Hejaz indirectly until the 19th century. The Mamluk-era fortifications and administrative structures provided the foundation for Ottoman guardianship of Mecca and Medina.
The Mamluk Legacy in the Holy Cities
Today, the Mamluk contribution is visible in many surviving monuments in Mecca and Medina. The Court of the Prophet’s Mosque in Medina retains a minbar (pulpit) made by a Mamluk sultan. The Ajyad Fortress in Mecca, built by the Ottomans on a Mamluk foundation, stood until the 21st century. More importantly, the Mamluk model of centralized state protection for the Hajj influenced later Muslim empires, including the Ottomans, the Mughals, and even modern Saudi Arabia.
The Mamluks demonstrated that the security of the holy cities required a combination of military force, religious patronage, and diplomatic flexibility. Their legacy endures in the idea that the guardian of Mecca and Medina must be a powerful state capable of projecting force across the Arabian Peninsula and the Red Sea. This expectation continues to shape the politics of the region to this day.
Conclusion
The Mamluk Sultanate’s role in protecting Mecca and Medina was a defining feature of its rule. From the mid-13th to the early 16th century, the Mamluks successfully defended the holy cities against Mongols, Crusaders, Bedouin raiders, and Portuguese fleets. They built fortifications, sponsored the Hajj caravans, and administered the Hejaz through a blend of direct control and local cooperation. Their patronage of religious institutions and their symbolic appropriation of the Caliphate solidified their claim as the champions of Sunni Islam. When the Ottomans succeeded them, they inherited a well-established system that preserved the sanctity of the pilgrimage for centuries. The Mamluks left an indelible mark on the history of Mecca and Medina—a testament to the power of a state that saw itself as the ultimate protector of the Islamic faith.
For further reading, consult Britannica’s entry on the Mamluks, the Metropolitan Museum of Art’s overview of Mamluk art and history, and World History Encyclopedia’s article on the Mamluk Sultanate.