Masjid al-Haram, the Sacred Mosque in Makkah, is the holiest mosque in Islam and the center of Hajj and Umrah. At its heart stands the Kaaba, the direction toward which Muslims around the world turn in prayer. The history of Masjid al-Haram extends back to Prophet Ibrahim (AS) and his son Isma'il (AS), and its physical form has developed through successive periods of Islamic history. In an authentic hadith, Abu Dharr (RA) narrated:
The mosque has been expanded and renovated repeatedly as the Muslim population and the number of pilgrims have increased. From the simple open space around the Kaaba in the earliest period to the vast multi-level complex of today, its development reflects centuries of care for one of Islam's most sacred places.
According to the Quran, the Sacred House’s foundations were laid by Prophet Ibrahim (AS) and his son Isma'il (AS). Allah says:
The Quran also describes the House at Bakkah as the first house established for mankind:
According to Islamic tradition, Ibrahim (AS) and Isma'il (AS) raised the foundations of the Kaaba as a place dedicated to the worship of Allah. The Kaaba became the central sacred structure around which the later mosque developed. A hadith recorded in Sahih Muslim also identifies Al-Masjid al-Haram as the first mosque established for mankind and mentions a forty-year interval between it and Al-Masjid al-Aqsa.
The exact history of the earliest physical structure surrounding the Kaaba is not documented in the same detail as its later expansions. It is therefore more accurate to distinguish the ancient sacred foundation of the House from the architectural development of the surrounding mosque.
Before the mission of Prophet Muhammad (PBUH), the Quraysh controlled Makkah and rebuilt the Kaaba approximately five years before the first revelation. During this reconstruction, the tribes disagreed over who should have the honor of placing the Black Stone back into position. Prophet Muhammad (PBUH), who was known for his wisdom even before prophethood, resolved the dispute by having the tribal leaders jointly raise the stone and then placing it himself.
The Kaaba had nevertheless become surrounded by idols during the period of Jahiliyyah. When Prophet Muhammad (PBUH) entered Makkah in 630 CE, the idols around the Kaaba were removed, and the sanctuary was restored to the worship of Allah alone. The Quran had already condemned the association of partners with Allah and emphasized the sanctity of His House.
The mosque itself was still a relatively simple open area. There was no substantial enclosure around the Kaaba during the lifetimes of Prophet Muhammad (PBUH) or Abu Bakr (RA).
As the Muslim community grew, the area around the Kaaba became increasingly crowded. The first significant expansion of the mosque's surrounding space is traditionally associated with Caliph Umar ibn al-Khattab (RA).
Umar (RA) acquired houses close to the Kaaba and demolished them to enlarge the prayer area. A low wall was built around the expanded space, with lamps placed on it. During the caliphate of Uthman ibn Affan (RA), additional houses were acquired, and the area was expanded further. A covered area was also developed for prayer.
These developments are important because they show that the expansion of Masjid al-Haram began during the earliest generations of Islam, rather than only under the Umayyad caliphate.
During the second Islamic civil war, Makkah became the scene of conflict between Abdullah ibn al-Zubayr (RA) and the Umayyad forces. The Kaaba was damaged during the siege of Makkah in 683 CE and was subsequently rebuilt by Ibn al-Zubayr. He reconstructed the Kaaba on foundations associated with Ibrahim (AS) and made significant improvements to the surrounding mosque.
After Ibn al-Zubayr's death, the Umayyads restored their authority over Makkah. Under Caliph Abd al-Malik ibn Marwan and later al-Walid ibn Abd al-Malik, further work was carried out on Masjid al-Haram. The mosque's outer walls were developed, columns and other architectural elements were introduced, and a minaret was added during the Umayyad period.
The exact chronology and scale of some early expansions differ between historical accounts. For this reason, specific measurements from individual historical sources should be treated cautiously.
The Abbasid caliphs continued the development of Masjid al-Haram. Abu Ja'far al-Mansur enlarged the mosque in the eighth century, followed by a much larger expansion under Caliph al-Mahdi. Later Abbasid rulers also undertook smaller extensions and renovation projects.
These projects added space for worshippers and improved the mosque's gates, structures, and facilities. The long sequence of Abbasid expansions demonstrates that the Sacred Mosque was continuously adapted to the needs of an expanding Muslim world.
The mosque continued to receive repairs and renovations under later Muslim dynasties, including the Mamluks. Major Ottoman reconstruction work followed in the sixteenth century.
One of the most significant Ottoman interventions began under Sultan Selim II, who commissioned the architect Mimar Sinan to improve Masjid al-Haram. The work included new supporting columns and small domes that replaced the earlier flat roof. According to Islamic Landmarks, these Ottoman elements are among the oldest surviving features of the present mosque.
Another major reconstruction took place under Sultan Murad IV in the seventeenth century, including the rebuilding of the Kaaba. Ottoman preservation and reconstruction played an important role in maintaining Masjid al-Haram until the beginning of the modern Saudi period.
The modern period brought the largest changes in the physical scale of Masjid al-Haram.
The first major Saudi expansion began in 1955 during the reign of King Saud. The project enlarged the mosque substantially, added four minarets, replaced portions of the flooring, and incorporated the Mas'a, the passage between Safa and Marwah, into the mosque complex.
According to Islamic Landmarks, this expansion increased the mosque's area from approximately 27,000 square meters to about 152,000 square meters and raised its stated maximum capacity to around 500,000 worshippers. The work was completed in 1973.
The second major Saudi expansion took place under King Fahd. Work began in the 1980s and included the creation of a large new wing and additional outdoor prayer areas after surrounding buildings were removed.
The expansion introduced modern facilities such as escalators, pedestrian tunnels, and advanced air-conditioning systems. Islamic Landmarks gives the resulting area as approximately 356,800 square meters, with a stated capacity of about 820,000 worshippers.
This period marked an important transition in the development of Masjid al-Haram, combining traditional Islamic architectural elements with large-scale modern engineering.
The third major Saudi expansion began in 2011 during the reign of King Abdullah. It was described by Islamic Landmarks as the largest expansion in the history of Masjid al-Haram. The project included additional indoor and outdoor prayer space and major improvements to the Mataf, the area surrounding the Kaaba where pilgrims perform Tawaf.
Modern development has also introduced multi-level prayer areas, improved circulation routes, cooling systems, crowd-management infrastructure, and other facilities designed to accommodate the enormous number of pilgrims visiting Makkah.
Masjid al-Haram is more than a large mosque. Its sacred complex contains several places directly connected with Islamic worship and the history of the Prophets.
The Kaaba is the central structure within Masjid al-Haram and the qiblah of Muslims worldwide. During Hajj and Umrah, pilgrims perform Tawaf by circumambulating it. Its history is closely connected with Prophet Ibrahim (AS) and Prophet Isma'il (AS).
The Black Stone, or Hajar al-Aswad, is set into one corner of the Kaaba. During Tawaf, pilgrims seek to kiss it or gesture toward it when possible, following the practice associated with the Prophet Muhammad (PBUH). Islamic sources also describe the Black Stone as having originated in Paradise.
Maqam Ibrahim, the Station of Ibrahim, is associated with the place where Prophet Ibrahim (AS) stood while building the Kaaba. Allah mentions it in connection with the Sacred House:
The Well of Zamzam is traditionally associated with Hajar and her son Isma'il (AS). Islamic tradition relates its emergence to the time when Hajar searched for water for her child. Zamzam remains an important part of the pilgrimage experience for Muslims visiting Makkah.
The hills of Safa and Marwah are within the Sacred Mosque complex. Pilgrims perform Sa'i by walking between them during Hajj and Umrah. Allah says:
The ritual commemorates the search for water associated with Hajar and forms an established part of Hajj and Umrah.
Masjid al-Haram occupies a unique position in Islamic worship. It is the destination of Hajj, one of the Five Pillars of Islam, which is obligatory for Muslims who have the physical and financial ability to undertake it.
Allah says:
Muslims also face the Kaaba during their daily prayers. The Sacred Mosque therefore connects the worship of Muslims across the world through a single qiblah.
The Quran describes Makkah's Sacred House as a place of safety and refuge:
Today, Masjid al-Haram is a vast modern mosque complex capable of accommodating very large numbers of worshippers. Its facilities include extensive prayer areas, multiple levels, escalators, pedestrian routes, air-conditioning, and infrastructure designed to manage the continuous flow of pilgrims.
The complex incorporates the Kaaba, Mataf, Maqam Ibrahim, Zamzam facilities, and the Sa'i route between Safa and Marwah. Its present appearance is the result of centuries of rebuilding and expansion rather than a single architectural project.
The exact area and capacity figures vary according to whether a source is measuring the mosque's built area, prayer areas, surrounding facilities, or peak crowd capacity. Therefore, it is better to describe Masjid al-Haram as one of the world's largest religious complexes rather than to rely on a single fixed capacity figure.
The history of Masjid al-Haram stretches from the raising of the foundations of the Kaaba by Prophet Ibrahim (AS) and Isma'il (AS) to the enormous mosque complex that surrounds it today.
Its development passed through the Quraysh period, the caliphates of Umar (RA) and Uthman (RA), the reconstruction associated with Abdullah ibn al-Zubayr (RA), Umayyad and Abbasid expansions, Mamluk and Ottoman restoration, and the large-scale Saudi expansions of the modern era.
Although its architecture has changed dramatically over the centuries, the central purpose of Masjid al-Haram has remained constant: worship of Allah and service to those who come to the Sacred House for prayer, Hajj, and Umrah.
For Muslims, Masjid al-Haram is therefore not simply an architectural landmark. It is the sacred center of the qiblah, the home of the Kaaba, and a place whose history is deeply connected with Prophet Ibrahim (AS), Prophet Isma'il (AS), and Prophet Muhammad (PBUH).