Ibrahim, Hajar and Ismail
According to Islamic tradition, Ibrahim left Hajar and their infant son Ismail in the barren valley of Makkah by God's command. When their water ran out, Hajar ran seven times between the hills of Safa and Marwah looking for help, until water sprang from the ground at the child's feet. That spring is the well of Zamzam, and the sa'i that every pilgrim performs today retraces her search.
Years later, the Quran relates, Ibrahim and Ismail raised the foundations of the House, the Kaaba, praying that God accept it from them (2:127). Ibrahim was then commanded to proclaim the pilgrimage to mankind, so that people would come on foot and on every lean camel from distant places (22:27). The stoning at Mina and the sacrifice of Eid recall other episodes of his story. More on the building itself is on our Kaaba page.
Before Islam
Over the centuries, Arab tribes kept up a pilgrimage to Makkah, but the worship of one God was overlaid with idols placed in and around the Kaaba. The Quraysh, the Prophet's own tribe, held custody of the sanctuary and grew wealthy from the trade fairs held around the season. Some customs had changed, too: the Quraysh no longer went out to Arafat with the other pilgrims, a practice the Quran later corrected (2:199).
When the Prophet began preaching in Makkah, the city's leaders opposed him, and in 622 he and his followers emigrated to Madinah, the Hijrah from which the Islamic calendar is counted. The history of Makkah page covers those years in more detail.
The farewell pilgrimage
In 630 CE the Prophet returned to Makkah with his followers and the city surrendered with little fighting. The idols were removed from the Kaaba and it was rededicated to the worship of God alone. The following year, Abu Bakr led the pilgrimage, and it was announced that idolaters would no longer take part.
In 632 CE, the tenth year after the Hijrah, the Prophet performed his only Hajj, accompanied by a very large number of Muslims. He showed them each rite and told them to take their rites from him. At Arafat he gave the sermon known as the Farewell Sermon, and a few months later he died in Madinah. The rites set out on our Hajj stages page follow the pattern of that pilgrimage.
Makkah and the pilgrimage through the centuries
Makkah grew around the well of Zamzam in a dry valley with no farmland, and lived off pilgrims and trade. After the time of the Prophet, the city was ruled in turn by caliphs, the Sharifs of Makkah (who governed under Abbasid, Mamluk and Ottoman overlords) and, after he took the Hejaz in 1924 and 1925, by Abd al-Aziz ibn Saud, whose state has run the pilgrimage since. The full story of the city is on the history of Makkah page.
Caravans, ships and aircraft
For more than a thousand years, most pilgrims travelled overland in great caravans from cities such as Damascus, Cairo and Baghdad, journeys that could take months. Rulers took on the protection of the routes: the road from Kufa in Iraq was improved with wells and cisterns funded by Zubaydah, wife of the Abbasid caliph Harun al-Rashid, and the Mamluk and Ottoman states sent caravans under an appointed commander of the pilgrimage. Travellers such as Ibn Jubayr and Ibn Battuta wrote vivid accounts of the journey, and the West African ruler Mansa Musa's pilgrimage of 1324 became legendary for the gold he brought.
In the nineteenth century, steamships through the Suez Canal brought pilgrims by sea from Asia and Africa, and in 1908 the Hejaz Railway reached Madinah from Damascus. In the twentieth century air travel transformed the journey, and the numbers grew from tens of thousands to millions.
Malcolm X's Hajj in 1964
Malcolm X, the African American leader, made Hajj in April 1964, soon after leaving the Nation of Islam. He flew to Jeddah in mid-April; accounts say his passport was held at first, and he later met Crown Prince Faisal. He wrote letters from Saudi Arabia, the best known written in Makkah that April to supporters in Harlem and later printed in his Autobiography.
In them he describes the hospitality he was shown and the sight of pilgrims of every colour and nation praying together as equals. He said it made him rethink his earlier views on race. He was killed in New York in February 1965. His account remains one of the best-known descriptions of Hajj in English.
The modern Hajj
Since the mid-twentieth century the Saudi state has repeatedly expanded the Masjid al-Haram and built the infrastructure of the holy sites: the tent city of Mina, the multi-level Jamarat bridge, road and rail links, and a dedicated Hajj terminal at Jeddah. According to Saudi statistics, attendance peaked at 3,161,573 pilgrims in 2012, before quotas were reduced during expansion work at the Haram.
During the COVID-19 pandemic, Hajj in 2020 and 2021 was limited to a small number of people already living in the Kingdom. Numbers recovered to 926,062 in 2022 and have stayed between about 1.6 and 1.9 million since 2023, with 1,707,301 recorded in 2026. The page on pilgrims by country shows how those numbers are made up.
Sources
- Encyclopaedia Britannica: Hajj
- Encyclopaedia Britannica: Kaaba
- Smithsonian Magazine: historical disruptions to Hajj
- GASTAT: Hajj statistics 1447 AH / 2026 (PDF)
- Yaqeen Institute: Malcolm X was denied entry to Mecca
- Arab News: A journey to Hajj that changed Islam in America
- Letter from Mecca, Malcolm X (text and date)
Page updated 2026-11-21