Hejaz Railway Museum: Madinah’s Ottoman Station of 1908
Ziyarat

Hejaz Railway Museum: Madinah’s Ottoman Station of 1908

The Hejaz Railway Museum occupies the restored Ottoman station that once linked Madinah with Damascus by rail. Learn its story and how to fit a visit into your Madinah stay.

Updated 28 November 2026Reviewed by the UmraHajj travel team

The Hejaz Railway Museum in Madinah is housed in the restored terminus of the Hejaz Railway, the line the Ottoman state opened in 1908 to carry pilgrims from Damascus to the city of the Prophet ﷺ. Its stone buildings, old locomotives and lengths of track sit about 1.5 km south-west of Masjid an-Nabawi.

It is a heritage site rather than a religious one, but it tells a remarkable story about how Muslims of a century ago tried to make the journey to the Two Holy Mosques shorter and safer.

A modern train crossing the Hijaz desert, a century after the line remembered at the Hejaz railway museum
Today the high-speed Haramain railway links Makkah and Madinah; the Hejaz Railway Museum preserves its Ottoman predecessor.

The history behind the Hejaz Railway Museum

For centuries, pilgrims from Syria and beyond travelled to the Hijaz in great caravans that took weeks and faced heat, thirst and raids along the way. At the end of the nineteenth century, the Ottoman Sultan Abdulhamid II launched a plan to replace the caravan route with a railway from Damascus to Madinah, and eventually to Makkah.

Work began in 1900. Much of the cost was met by donations from Muslims across the world, from India to North Africa, who saw the project as a service to the pilgrims. The line ran for roughly 1,300 km through Jordan and northern Arabia, and the first trains reached Madinah in 1908, with the official opening on 1 September that year. A journey of several weeks became one of a few days.

The station and Masjid al-‘Anbariyyah

The Madinah terminus was built in the al-‘Anbariyyah area, south-west of the old city walls, in a dark volcanic stone typical of the region. Beside it stands Masjid al-‘Anbariyyah, a mosque built in the Ottoman period for travellers and railway workers, with a distinctive Ottoman style. It has been restored and is used for prayer today.

War and decline

The railway did not last long. During the First World War it became a military target, and raids during the Arab Revolt damaged bridges and track across the desert. After the war, regular services south of Jordan stopped and the line was never restored to Madinah. The extension to Makkah was never built.

Madinah itself was at the centre of these events. The Ottoman garrison under Fakhri Pasha held the city through a long siege and did not surrender until early 1919, months after the war had ended elsewhere. The railway had been its lifeline, and its loss cut Madinah off from the north. Displays at the Hejaz Railway Museum change, so ask staff whether this chapter is covered during your visit. Either way, it explains why the line fell silent so soon after it opened, and why the station stood empty for decades before its restoration.

The station buildings survived and were later restored by the Saudi authorities as part of the city’s heritage. That makes the Hejaz Railway Museum one of the few places in Madinah where late Ottoman architecture can still be seen.

Hejaz Railway Museum: what is from the Sunnah (and what is not)

Visiting the Hejaz Railway Museum is a permissible heritage visit with no connection to the Sunnah. There is no reward attached to it, and it is not part of Umrah, Hajj or the ziyarat of Madinah in the religious sense.

The visits with an established basis in authentic hadith are Masjid an-Nabawi, Masjid Quba, and greeting the dead at al-Baqi and the martyrs of Uhud. Keep those as your priorities and treat the museum as an extra if time allows.

What to see and what to read at the Hejaz Railway Museum

Exhibits and access change from time to time, but visitors commonly see:

  • the restored stone station buildings and platform area;
  • a historic steam locomotive and carriages on display;
  • sections of original track, sleepers and railway equipment;
  • photographs, maps and documents about the line’s construction;
  • Masjid al-‘Anbariyyah next door, with its Ottoman domes and minarets.

The site is also a good place to reflect on travel itself. The Prophet ﷺ taught a dua for setting out on a journey, which many pilgrims recite on the way to Madinah. You can learn or revise it here:

Dua for travelWhen you board the car, coach or plane

سُبْحَانَ الَّذِي سَخَّرَ لَنَا هَذَا وَمَا كُنَّا لَهُ مُقْرِنِينَ، وَإِنَّا إِلَى رَبِّنَا لَمُنْقَلِبُونَ

Subhana-lladhi sakhkhara lana hadha wa ma kunna lahu muqrinin, wa inna ila rabbina lamunqalibun.

Glory be to the One who has placed this at our service, for we could not have done it ourselves, and to our Lord we will surely return.

Source: Qur’an 43:13–14; Muslim

For background reading, any good history of the late Ottoman period covers the railway, and many Hajj travel memoirs from the early twentieth century describe journeys on the line.

How to get to the Hejaz Railway Museum from Masjid an-Nabawi

Walking: the museum is about 1.5 km south-west of Masjid an-Nabawi. Walking takes roughly 20 to 25 minutes along busy roads, which is comfortable in the early morning but tiring in the midday heat.

Taxi or ride-hailing: the easiest option, about 5 to 10 minutes depending on traffic. Ask for the Hejaz Railway Station or Masjid al-‘Anbariyyah. Bus: the hop-on, hop-off sightseeing bus and some city routes pass the area; check current routes locally.

From Masjid al-Haram in Makkah, travel to Madinah first, around 2.5 hours on the Haramain train or 4 to 5 hours by road. The contrast between the modern high-speed line and the 1908 railway is part of what makes the visit interesting.

Practical tips for visiting

Check opening hours

Opening times, ticketing and access to the interior change, sometimes for restoration. Confirm locally before you go.

Go in the morning

Much of the site is outdoors, so avoid the heat of the afternoon.

Pray at al-‘Anbariyyah

Time your visit to join a prayer at the Ottoman mosque next door.

Great for families

Children usually enjoy seeing the locomotive and old carriages.

Bring water and a hat

There is little shade around the open areas of the station.

Combine with Quba

Masjid Quba lies to the south, a short drive away.

Hejaz Railway Museum quick facts

CityMadinah
DistanceAbout 1.5 km south-west of Masjid an-Nabawi
Time neededAbout 45 minutes
Best timeMorning
DifficultyEasy; partly outdoors
BuiltRailway 1900–1908; Madinah terminus opened 1908
Type of siteModern heritage museum; opening hours and ticketing change
Sunnah visit?No; a heritage visit
Location

Hejaz Railway Museum

About 1.5 km south-west of Masjid an-Nabawi

Open in Google MapsNearby ziyarat
MadinahAdd Madinah to your UmrahNights near Masjid an-Nabawi, Rawdah permits and ziyarat — we include it in your proposal.Madinah city guide →

See our Madinah city guide for hotels, transport and the main sites, and the Madinah ziyarat guide for the Sunnah visits. The Hejaz Railway Museum fits well with Masjid Quba, Masjid al-Jumu‘ah and the Dar al Madinah Museum; the ziyarat route planner helps you order them. All sites are on the ziyarat hub. Book the Rawdah through the official Nusuk platform, and for the journey itself read how to perform Umrah or get a tailored quote.

Hejaz Railway Museum: frequently asked questions

When did the Hejaz Railway reach Madinah?

The first trains arrived in 1908, and the line officially opened on 1 September 1908, linking Madinah with Damascus.

Did the railway ever reach Makkah?

No. An extension to Makkah was planned but never built, and services to Madinah ended after the First World War.

Can I go inside the station buildings?

Access to the interior varies with restoration work and opening hours. Check locally before your visit.

Is there a mosque at the museum?

Yes. Masjid al-‘Anbariyyah, an Ottoman-era mosque, stands beside the station and is open for prayers.

How long does a visit take?

Around 45 minutes is enough for most people, or longer if you also pray at the mosque.

Is the Hejaz Railway Museum a religious site?

No. It is a heritage site. Visiting is permissible, but it carries no special reward and is not part of the rites.

See Madinah’s history at your own pace

We can arrange a private driver for Madinah ziyarat, including heritage stops like the Hejaz Railway Museum.

Get my tailored quote →
Chat with us