Medina: The City of the Prophet in the Hejaz

Medina is the second holiest city of Islam, after Mecca. The Prophet Muhammad migrated here in 622, and the city has drawn pilgrims ever since.

Medina is a city that most travellers meet through its mosque before they meet anything else, because the Prophet’s Mosque stands at its centre and the life of the city turns around it. The city is the capital of Medina Province in the Hejaz region of western Saudi Arabia, about 340 kilometres north of Mecca, and it holds about 1.4 million people, an international airport and a high-speed railway to Mecca and Jeddah. Pilgrims arrive in their millions every year, most of them for Umrah or in the weeks after the Hajj, and they come to pray where the Prophet prayed, to walk the ground of the early Muslim community and to stand at Mount Uhud, where the second great battle of early Islam was fought. The city is also a modern Saudi city of highways, hotels, date markets and universities, and a visitor who looks past the mosque finds a place with its own seasons, its own food and its own long memory of trade, scholarship and empire.

This article is written for the traveller who wants to understand Medina before arriving, whether as a pilgrim or as a non-Muslim visitor seeing the city from outside the sacred precinct. It covers the geography of the oasis and the lava fields, the history from the oasis town of Yathrib to the present day, and the practical rules that govern who may enter the Prophet’s Mosque and who must stay outside it. Non-Muslim visitors are welcome in most of the city, but the Haram at its centre is reserved for Muslims alone, and that boundary shapes every plan a visitor makes. All the figures in this article were checked on 22 November 2026 against the sources listed below, and anything that could not be checked is recorded in the Unverified section instead of being stated as fact.

Quick Facts About Medina

Fact Detail
Name Medina (Arabic: Al-Madinah al-Munawwarah, “the Radiant City”); before Islam, Yathrib
Status Second holiest city of Islam; capital of Medina Province, Hejaz region, Saudi Arabia
Location Western Saudi Arabia, about 340 km north of Mecca and about 190 km east of the Red Sea coast
Coordinates 24.47° N, 39.61° E
Elevation About 620 m above sea level
Area 589 km² (urban area about 293 km²)
Population About 1.4 million (2022 census: city 1,411,599; whole province 1,477,047)
Language Arabic; English widely used in tourism and pilgrimage services
Currency Saudi riyal (SAR)
Time zone UTC+3
Wikidata Q35484, large city
UNESCO No World Heritage site in Medina; Saudi Arabia has 8 sites, the newest Al-Faw (2024)

Geography of Medina

An Oasis on a Lava Plateau

Medina stands on a high plateau in the Hejaz, about 620 metres above sea level, in a landscape of rocky hills, dry valleys and ancient lava fields. The city lies about 190 kilometres east of the Red Sea coast and about 340 kilometres north of Mecca, on the old caravan route that once linked southern Arabia with Syria. Its ground is volcanic in origin, and the black basalt fields around the city, the harrat, are the cooled remains of eruptions that shaped the whole region long before the city existed.

Between the lava flows lie wadis, dry riverbeds that fill only after rain, and pockets of soil where date palms grow, and it was those palms that made the oasis worth settling in the first place. The city spreads over 589 square kilometres, but only about half of that is built up, and the rest is mountain, wadi and lava field, so the edge of Medina is never far from open desert ground.

The most prominent landmark in the city’s geography is Mount Uhud, which rises north of the city to 1,077 metres and runs for about 7.5 kilometres along the northern horizon. The mountain is a long, bare ridge of rock, and it dominates the view from the northern districts in a way no building in Medina does. To the south and west lie lower hills and the lava fields, and to the east the ground falls away towards the desert interior.

The city’s streets follow the valleys between these features, and its neighbourhoods climb the gentler slopes, so a walk through Medina is a walk up and down ground that never quite flattens. The Prophet’s Mosque sits on the flat heart of the old oasis, and the modern city has grown outward from it in every direction, with the northern quarters reaching towards Uhud and the southern quarters spreading towards the airport.

The oasis itself survives in the date groves that still stand inside the city and on its edges, and the Ajwa date, the most famous product of Medina, grows in those groves. The palm gardens need water, and Medina’s water has always come from wells and from the seasonal flow of the wadis, which is why the old town grew where the water table was highest. Modern Medina draws its water from deeper wells and from desalination plants on the Red Sea coast, and the palm groves are now a heritage landscape rather than the city’s food supply. The lava fields around the city are protected in places, and they give Medina a darker, more rugged setting than the sand deserts most visitors expect from Arabia.

A Hot Desert Climate

Medina has a hot desert climate, classified BWh in the Köppen-Geiger system, with long, fierce summers and short, mild winters. Summer runs from May to September, and daytime temperatures in those months regularly pass 40°C, with August the hottest month at an average of about 43°C. The sun is strong all year, the air is dry, and shade is scarce away from the mosque’s great umbrellas and the palm groves.

Winter, from December to February, is far gentler, with daytime temperatures around 24°C and nights that can fall to about 12°C, and this is the season when walking the city is a pleasure rather than an endurance test. The shoulder months of March, April, October and November sit between the two extremes, warm by day and cool after dark, and they suit visitors who want to see the city on foot.

Rainfall in Medina is very low, at about 36 millimetres a year according to climate data for 1991–2021, and almost all of it falls in winter. A single winter shower can turn a wadi into a brief stream, and the city’s drains are built for those rare events rather than for steady rain. The dry air means that even winter visitors should carry water and use sun protection, because the sun at this latitude is strong in every month.

Dust is part of the climate too, and a wind from the desert can fill the air with fine sand, especially in spring. The climate shapes the pilgrimage calendar as much as any religious rule, because the crowds of Umrah thin in the hottest weeks and swell in the cooler months, and hotel prices around the mosque follow the same rhythm.

The altitude of about 620 metres softens the heat slightly compared with the Red Sea coast, and nights in Medina are cooler than nights in Jeddah at the same time of year. The difference is small, only a few degrees, but it is enough that evenings on a rooftop in winter feel fresh rather than warm. Visitors who arrive from the coast notice the change at once, and visitors who arrive from the north notice that Medina’s winter, while mild, is still a desert winter, with cold nights and a sharp difference between sun and shade. The city’s geography, its height, its lava fields and its dry wadis, is the reason the oasis existed at all, and it still sets the terms for every visit.

The City Around the Mosque

The Prophet’s Mosque is not only the religious centre of Medina but also its geographical centre, and the city is organised around it in rings. The innermost ring is the Haram, the sacred precinct, which holds the mosque, its courtyards and the Al-Baqi cemetery to the east, and which is closed to non-Muslims. Around the Haram lies a ring of hotels, shops and pilgrim services, and beyond that the residential districts, the markets, the university and the airport road.

The old oasis town, the Medina of Yathrib and of the early caliphs, lies beneath the modern centre, and almost nothing of it survives above ground except in the names of streets and in the foundations found during the mosque’s expansions. The city’s growth has been outward and upward, with new districts rising on the hills to the north and west, and the Haramain high-speed railway station standing to the west of the centre.

Transport in Medina follows this geography, with the airport about 15 kilometres north-east of the centre and the railway station on the western edge, linked to the mosque by road. Taxis and buses carry pilgrims between the station, the airport and the hotels around the Haram, and the roads are widest where the pilgrim traffic is heaviest. The date market, the old souqs and the Hejaz Railway Museum lie outside the Haram, in the parts of the city that any visitor may walk, and they give the city a second centre of gravity for those who cannot enter the mosque. Medina’s geography is therefore a geography of two cities in one place: the sacred centre that belongs to Muslims alone, and the working city around it that belongs to everyone who comes here.

A historic depiction of the Prophet's Mosque in Medina

A historic depiction of the Prophet’s Mosque in Medina — Public domain

History of Medina

Yathrib and the Hijra of 622

Before it was called Medina, the city was Yathrib, an ancient agricultural oasis in the Hejaz where the Arab tribes of Aws and Khazraj lived alongside Jewish communities. Yathrib stood on the trade route that linked southern Arabia with Syria, and its date palms made it a valued stopping place for caravans crossing the peninsula. The oasis was rich enough to support a settled population and poor enough in water to keep its people watchful, and its tribes farmed, traded and fought over the groves for generations.

By the early seventh century, Yathrib was torn by a long feud between Aws and Khazraj, and the people of the city invited Muhammad, then opposed in Mecca, to come as an arbitrator. In 622 he left Mecca and migrated to Yathrib in the event known as the Hijra, and that year became the first year of the Islamic calendar. On his arrival he built the Prophet’s Mosque, and the city was renamed Madinat an-Nabi, the City of the Prophet, shortened to Medina.

The mosque that Muhammad built was a modest thing of mud brick and palm trunks, covering only about 1,050 square metres, and it served as prayer hall, meeting place, court and school for the new community. Around it, the first Muslim community took shape, with a charter that bound the tribes and the Jewish clans of the oasis into a single political community. The early years were hard, and the battles that defined them were fought close to the city: Badr in 624, Uhud in 625 at the foot of Mount Uhud, where about 70 Muslims died, including Hamza, the Prophet’s uncle, and the Battle of the Trench in 627, when the armies of Mecca besieged Medina and were held off by a ditch dug around the city. In 630 Muhammad led his followers back to Mecca, but he chose to live in Medina until his death in 632, and he was buried in his house beside the mosque, where his tomb remains today.

The mosque of Quba, about 6 kilometres south of the centre, is regarded as the first mosque of Islam, founded by the Prophet himself in 622 on the site of the old village of Quba. Tradition holds that prayer there after ritual washing carries the reward of an Umrah, which is why almost every pilgrim to Medina visits it. The Qiblatayn Mosque, the Mosque of the Two Directions of Prayer, in the north-west of the city, marks the place where the direction of prayer was changed from Jerusalem to Mecca in 624. These three mosques, the Prophet’s Mosque, Quba and Qiblatayn, are the oldest layer of Medina’s history, and they are still the first places a pilgrim seeks out.

From Capital to Holy City

After the death of Muhammad, Medina was the capital of the Islamic empire under the first four caliphs, the Rashidun, and the city governed an empire that stretched from Persia to North Africa. In 661 the caliph Muawiyah moved the capital to Damascus, and Medina lost its political power but kept its religious and scholarly standing. For the centuries that followed, the city passed under the Umayyads, the Abbasids, the Mamluks and then the Ottomans from 1517, and each dynasty left its mark on the mosque and on the city around it.

The Green Dome, which covers the tomb of the Prophet, was built in the Mamluk period and painted green in 1837, and it has been the most recognisable feature of the Medina skyline ever since. The mosque grew with every century, and the city grew with it, as scholars, students and pilgrims settled in the quarters around the Haram and the city’s madrasas filled with teachers from across the Muslim world.

The Ottoman period brought the Hejaz Railway, which reached Medina in 1908 and linked the city with Damascus, and the Medina station was opened on 1 September 1908. The railway was destroyed during the First World War and stopped running in about 1921, and the old station was later restored and opened as a museum in 2006. The railway changed Medina for a generation, because pilgrims who had walked for weeks could now arrive by train, and the city’s hotels and markets grew to serve them.

When the railway died, the camel and the car took its place, and Medina returned to the slower rhythms of the road until the modern highways and the airport arrived. The old station building in the Anbariya district still stands, with its locomotives and carriages, as a reminder of that brief railway age.

In December 1925 Medina surrendered to the forces of Ibn Saud, and the city became part of the Kingdom of Saudi Arabia, formally founded in 1932. The Saudi period has been defined by the expansion of the Prophet’s Mosque, and the largest of those expansions took place under King Fahd from 1985 to 1994, when the mosque’s area grew to more than 160,000 square metres, with 10 minarets and 27 sliding domes on the roof. The present complex, including its courtyards, covers more than 400,000 square metres and can hold about a million worshippers at peak times.

The Green Dome that stands today was built under Sultan Mahmud II in 1817–1818, and the 10 minarets, each about 105 metres high, are the tallest features of the modern city. In 2024 Medina joined the UNESCO Global Network of Learning Cities, a recognition of its education work rather than a World Heritage listing, and Saudi Arabia now has 8 World Heritage sites, the newest being the Al-Faw Archaeological Area in 2024, with none of them inside the city of Medina itself.

Timeline

Year Event
Before the 7th century Yathrib is a farming oasis on the Hejaz trade route
622 The Hijra; the Quba Mosque and the Prophet’s Mosque are built
625 The Battle of Uhud at the foot of Mount Uhud
632 Muhammad dies and is buried in Medina
661 The Islamic capital moves to Damascus
1517 Medina comes under Ottoman rule
1908 The Hejaz Railway reaches Medina
1985–1994 The largest expansion of the Prophet’s Mosque, under King Fahd
2018 The Haramain high-speed railway opens
2024 Medina joins the UNESCO Global Network of Learning Cities

Quba Mosque in Medina

A historic depiction of the Prophet’s Mosque in Medina — Public domain

Travel to Medina

Who May Visit, and Where

Medina is open to non-Muslim visitors in most of the city, which sets it apart from Mecca, where non-Muslims are barred entirely. The exception is the Haram, the sacred precinct at the centre, which holds the Prophet’s Mosque, its courtyards and the Al-Baqi cemetery, and which is reserved for Muslims alone. Non-Muslims may not enter the mosque grounds under any circumstances, and the boundary is marked by gates and signs on the roads around the mosque, with checkpoints in place.

Non-Muslim visitors may still stay in hotels, walk the city and look at the mosque from outside the boundary, and they may visit the museums, the date market and Mount Uhud. The rules for the wider city are reported to have been relaxed since 2021, but the mosque itself remains closed to non-Muslims, and the rules can change, so a visitor should check the current position before travelling rather than relying on an old guidebook.

Every visitor to Medina, pilgrim or not, is expected to dress modestly and to respect the sacred character of the place. Inside the mosques, shoes are removed before entering the prayer areas, voices are kept low, and photography is restricted in the most sacred areas. Entry to the Rawdah, the area between the Prophet’s tomb and the old pulpit inside the mosque, usually needs to be booked in advance through the Nusuk app, and the daily places are limited, so pilgrims should arrange it early.

The mosque’s great umbrellas open over the courtyard to shade worshippers praying outside, and the 27 sliding domes on the roof open to let in light and air. A first-time visitor should allow two to three days for Medina, which is enough for the mosque, Quba, Qiblatayn, Uhud and the museums without rushing.

When to Go and How Long to Stay

The most comfortable months in Medina are November to February, when daytime temperatures sit around 24–29°C and the evenings are cool enough for walking. Summer, from May to September, is very hot, often above 40°C, and it does not suit long walks outdoors, though pilgrims still come in large numbers and the mosque’s air-conditioned halls and shaded courtyards make prayer possible at any hour. Medina receives visitors all year, but it is busiest during the Umrah season and in the weeks after the Hajj, when hotels near the mosque fill up and should be booked well ahead.

A short stay of two or three days suits a first visit, with one day for the Prophet’s Mosque and the Rawdah, one day for Quba, Qiblatayn and Uhud, and a third day for the museums, the date market and a slow walk through the old quarters. Travellers who come only for the mosque often stay a single night, but they miss the city that grew around it.

The Haramain high-speed railway, opened in September 2018, links Medina with Jeddah and Mecca over about 450 kilometres, at speeds of up to 300 km/h, with a journey time of about two hours. It is the easiest way to travel between the two holy cities, and it has replaced the long road journey for most pilgrims. Prince Mohammad bin Abdulaziz International Airport lies about 15 kilometres north-east of the centre, and taxis and buses connect it with the hotels around the Haram.

Inside the city, taxis and buses are the main transport, and the walk from a hotel near the mosque to the Haram is short. Vietnamese citizens should check the current Saudi visa rules before travelling, because tourist visas and Umrah visas have different conditions, and hotel and train bookings should be made early in the peak season.

Food, Markets and the City Beyond the Haram

The food of Medina carries the flavour of the Hejaz, with lamb rice dishes, flatbreads and dates, and the restaurants around the mosque serve Arab, Indian and South-East Asian food for pilgrims from across the world. The central date market is the place to taste and buy Ajwa dates, the most famous product of Medina, and the stalls there sell dates of every grade, from everyday fruit to the dark, soft Ajwa that commands the highest price. The Hejaz Railway Museum, in the old Ottoman station in the Anbariya district, displays locomotives, carriages and objects from the railway that once linked Damascus with Medina, though it has been reported closed for renovation at times, so visitors should check before going. The Dar Al Madinah Museum is a private museum of the city’s history, with models that show Medina in different periods, and it is a good introduction for visitors who want the story of the city in one room.

Mount Uhud, about 5 kilometres north of the Prophet’s Mosque, rewards an early morning or late afternoon climb, when the light is low and the heat has eased. The cemetery of the martyrs lies at the foot of the mountain, and the Sayyid Ash-Shuhada Mosque, built in 2017, stands nearby. The Seven Mosques, Sab’a Masajid, stand on the slope of Mount Sela in the north-west of the city, marking the site of the Battle of the Trench in 627. A visitor who has seen the mosque, the mountain and the museums has seen the three layers of Medina: the sacred centre, the battlefield that shaped its early history, and the modern city that serves the millions who come here every year.

Notable Places in Medina

  • The Prophet’s Mosque (Al-Masjid an-Nabawi) — the second largest mosque in the world, first built in 622, with the Green Dome over the Prophet’s tomb, 10 minarets of about 105 metres, 27 sliding domes, and room for about a million worshippers at peak times.
  • Quba Mosque — regarded as the first mosque of Islam, founded in 622 about 6 km south of the centre; the present building, completed in 1986 to a design by Abdel-Wahed El-Wakil, has 4 minarets and room for more than 30,000 people.
  • Qiblatayn Mosque — the Mosque of the Two Directions of Prayer, in the north-west of the city, where the direction of prayer was changed from Jerusalem to Mecca in 624.
  • Mount Uhud — 1,077 m high and about 7.5 km long, north of the city, where the Battle of Uhud was fought on 19 March 625; the martyrs’ cemetery lies at its foot.
  • Al-Baqi Cemetery — the old cemetery east of the Prophet’s Mosque, where many of the Prophet’s family and companions are buried; inside the Haram and reserved for Muslims.
  • The Seven Mosques (Sab’a Masajid) — a group of old mosques on the slope of Mount Sela, marking the site of the Battle of the Trench in 627.
  • Hejaz Railway Museum — the Ottoman station of 1908 in the Anbariya district, opened as a museum in 2006; check whether it is open before visiting.
  • Dar Al Madinah Museum — a private museum of Medina’s history, with models of the city through the centuries.
  • Central date market — the place to taste and buy Ajwa dates, the most famous product of Medina.

Frequently Asked Questions

Is Medina the holiest city of Islam?
No. Mecca is the holiest city of Islam, and Medina ranks second. Jerusalem is regarded as the third holiest site in the Islamic tradition, and the three cities are linked by the history of the early community.

Can non-Muslims visit Medina?
Yes, in most of the city. Non-Muslims may stay in hotels, walk the streets, visit the museums and the date market, and see the mosque from outside the boundary. They may not enter the Haram at the centre, which holds the Prophet’s Mosque, its courtyards and the Al-Baqi cemetery.

When was the Prophet’s Mosque built?
The first mosque was built by the Prophet Muhammad in 622, immediately after the Hijra from Mecca. It has been enlarged many times over more than fourteen centuries, most recently in the great expansion under King Fahd from 1985 to 1994.

Does Medina have a UNESCO World Heritage site?
No. Saudi Arabia has 8 World Heritage sites, the newest being the Al-Faw Archaeological Area in 2024, but none of them lies inside the city of Medina. Hegra, the country’s first site, inscribed in 2008, stands at AlUla in Medina Province, about 300 km north of the city.

What is the best time of year to visit Medina?
November to February is the most comfortable season, with daytime temperatures of about 24–29°C and cool evenings. Summer, from May to September, is very hot, often above 40°C, and it does not suit long walks outdoors.

How do I travel from Mecca to Medina?
The Haramain high-speed railway, opened in September 2018, links Mecca with Medina through Jeddah over about 450 km, at speeds of up to 300 km/h, with a journey time of about two hours. Road and air links also exist, but the train is the fastest and simplest choice.

Verified

Verified 22 November 2026. Population, area, elevation, coordinates, mosque dates and railway facts in this article were checked against the sources below. The Medina article states the UNESCO position precisely: Medina joined the UNESCO Global Network of Learning Cities in 2024, which is an education recognition, not a World Heritage listing, and Saudi Arabia’s 8 World Heritage sites include none in the city itself.

Sources

  • Medina: general overview — https://en.wikipedia.org/wiki/Medina
  • Saudi Arabia’s 8 World Heritage sites, Al-Faw 2024 the eighth, Hegra 2008 ref 1293 — https://whc.unesco.org/en/statesparties/sa
  • Prophet’s Mosque (built 622, capacity about 1 million, Green Dome 1817–1818 and painted green 1837, 10 minarets, King Fahd expansion 1985–1994) — https://en.wikipedia.org/wiki/Prophet%27s_Mosque
  • Quba Mosque (first mosque, founded 622, about 6 km from Medina, rebuilt and completed 1986) — https://en.wikipedia.org/wiki/Quba_Mosque
  • Mount Uhud (1,077 m high, about 7.5 km long, Battle of Uhud 19 March 625) — https://en.wikipedia.org/wiki/Mount_Uhud
  • Rules for non-Muslim visitors — https://www.holidaysaudi.com/blog/can-non-muslims-visit-makkah-and-madinah/
  • Climate data for Medina — https://en.climate-data.org/asia/saudi-arabia/al-madinah-region/medina-3534/
  • Haramain high-speed railway — https://www.railwaygazette.com/passenger/2018/09/25/king-inaugurates-haramain-high-speed-rail/
  • Hejaz Railway Museum — https://www.visitalmadinah.com/museums-in-medina-saudi-arabia/
  • Wikidata Q35484 (Medina, P31 large city Q1549591, coordinates 24.47/39.61) — verified through the Wikidata API, 22 November 2026.

Unverified

  • Distance from Medina to AlUla (Hegra): sources give about 300 km by road — re-check when planning a trip to AlUla.
  • Opening status of the Hejaz Railway Museum: several sources report it temporarily closed for renovation — check before visiting.
  • Access rules for the Haram for non-Muslims: sources differ on how far the relaxation since 2021 extends and on the exact boundary — check current information before travelling.
  • Booking the Rawdah through the Nusuk app: the rules may change by season — check the Nusuk app before travelling.
  • Average annual rainfall in Medina: sources give from about 36 mm to about 69 mm depending on the statistics period — this article uses the 36 mm figure from climate-data.org for 1991–2021.
  • Haramain train fares and hotel prices around the mosque: these change by season and ticket class — check the official price lists before travelling.

Illustrations

  • Hero: Worshippers at the Prophet’s Mosque in Medina. Free image: https://upload.wikimedia.org/wikipedia/commons/2/20/Worshippers_at_the_Prophet%27s_Mosque_in_Medina_%282022%29.jpg — CC BY-SA 4.
  • In body, Medina: A historic depiction of the Prophet’s Mosque in Medina. Free image: https://upload.wikimedia.org/wikipedia/commons/4/42/Depiction_of_the_Prophet%27s_Mosque_in_Medina_%28CBL_Ar_4223%2C_f._4a%29.jpg — Public domain.
  • In body, Medina: Quba Mosque in Medina. Free image: https://upload.wikimedia.org/wikipedia/commons/d/d4/Quba_Mosque_%282024%29.jpg — CC BY-SA 4.