The Hejaz Railway was built between Damascus and Medina in 1900–1908 on the orders of Abdülhamid II. According to the TDV Encyclopedia of Islam, the main reasons for its construction were military, political and religious. The line would speed up the dispatch of troops to the region and strengthen Ottoman authority. It would also cut the pilgrims’ journey, which took weeks, to a few days. To the public, however, it was above all this religious aim that was presented.
Quick Summary
- Proposals for a railway in the region were made from 1864 onwards; the most comprehensive came from Ahmed İzzet Efendi in 1891.
- Construction was decided by an imperial decree (irade) of 2 May 1900; work began on 1 September 1900, and the line reached Medina in 1908.
- The aims were military, political and religious; when the project was presented to the public, the easing of the pilgrimage journey was given prominence.
- The estimated cost was 4 million liras; one third of the fund came from donations and two thirds from other revenues.
- With its Haifa branch, the Hejaz Railway was 1,464 km long; by 1917 it had grown to 1,750 km.
- Plans to extend it to Mecca, Jeddah and Yemen never came to fruition; Medina surrendered on 10 January 1919.
Contents
- Where did the idea of the Hejaz Railway come from?
- Why was the Hejaz Railway built?
- Where did the money come from?
- Who built the line?
- The construction timeline and the 1908 opening
- Was the Hejaz Railway to be extended to Yemen?
- Pilgrimage by train and the station towns
- The First World War and after
- Frequently asked questions
- Conclusion

Where Did the Idea of the Hejaz Railway Come From?
The idea of building a railway in the region arose in the second half of the 19th century. The earliest proposal mentioned in the TDV Encyclopedia of Islam came in 1864 from Zimpel, an American engineer of German origin, who proposed a line linking the Red Sea to Damascus. The proposal was rejected because the reaction of the tribes was feared and the sea route was considered cheaper.
In 1874 some army officers proposed a line between Medina and Mecca, arguing that such a line would consolidate Ottoman rule in the region. In 1891 Osman Nuri Pasha, the commander of the Hejaz, wrote that a railway between Jeddah and Mecca was needed. A three-member commission that examined his report found the proposal reasonable and stated that such a line would relieve the hardships pilgrims faced on the road. Around the same time, the Indian journalist Muhammad Inshaallah was also campaigning for a line that would pass through Mecca and Medina and go on to Yemen.
Ahmed İzzet Efendi’s Report and the 1900 Decree
The most comprehensive proposal also came in 1891, from Ahmed İzzet Efendi, at that time director of waqfs (pious foundations) in Jeddah; it envisaged a line from Damascus to Medina. According to his report, this line would be a powerful means of defense against foreign attacks on the region and against any revolts that might break out. At the same time, it would greatly ease the pilgrimage journey.
Abdülhamid II sent the proposal for an opinion to Mehmed Şakir Pasha, a lieutenant general of the General Staff (Erkân-ı Harbiyye Feriki). The pasha did not stop at examining the report: he calculated the estimated cost of the line and marked the route on a map. The sultan also sought the views of Derviş Pasha and Gazi Ahmed Muhtar Pasha. He then ordered construction to begin by an imperial decree dated 2 May 1900. Work began on 1 September 1900 with an official ceremony.

Why Was the Hejaz Railway Built?
Among the reasons for its construction, the encyclopedia places military, political and religious aims first. To these is added the expectation that trade would develop and urbanization would speed up. Not all of these aims, however, were presented to the public with the same weight.
Troop Transport, Political Authority and the Suez Canal
Above all, the railway would speed up the sending of troops to the region. It would thus serve as a means of defense against possible uprisings and attacks from outside. Greater military effectiveness would also strengthen Ottoman political authority. In peacetime, too, soldiers and munitions would travel to the Hejaz and Yemen by train, and dependence on the Suez Canal would come to an end. According to Zekeriya Kurşun, regular dispatches of troops from the center to the region had in fact only been able to begin after the canal opened in 1869.
The Pilgrimage: From Forty Days to a Few
When presenting the project to the public, however, the state kept the military and political calculations in the background and brought the religious aim to the fore. According to Gülsoy and Ochsenwald, the journey from Syria to Medina took about forty days, and to Mecca fifty. The road was also dangerous because of Bedouin attacks. By train, this time was expected to fall to four or five days, costs to drop sharply and the number of pilgrims to rise. According to the Hajj entry, Bedouin raids had long been a danger to the caravans; in 1757 many pilgrims died in an attack on the Damascus caravan on its way home.
The Policy of Islamic Unity
The project would also increase Abdülhamid II’s prestige and influence in the Islamic world. It was expected to bring Muslims together around a common work and a common goal. Cevdet Küçük, too, mentions the Hejaz Railway as part of the sultan’s policy of pan-Islamism, that is, Islamic unity. We discussed the intellectual background of this policy in our article on Ottoman intellectual movements, and the overall balance sheet of the period in The reign of Abdülhamid II: despotism or modernization?
Where Did the Money Come From? Donations and Other Revenues
The cost of the line was estimated at 4 million liras. This sum was more than 18 percent of expenditure in the 1901 budget. Because revenues were earmarked for specific expenses, the treasury could not set aside additional funds; the foreign debt and the indemnity for the War of ’93 (Doksanüç Harbi, the Russo-Ottoman War of 1877–1878) were also being paid. It was therefore decided to cover the cost with donations collected from Muslims; for the first urgent needs, a loan was to be taken from the Ziraat Bank (Agricultural Bank).
The Donation Campaign and the Medals
The donations were managed in Istanbul by the Donations Commission (İane Komisyonu), chaired by the minister of finance. Provincial commissions, working with muhtars (village and neighborhood headmen) and imams, drew up lists in villages and neighborhoods and collected money. In the campaign, the line was presented as the common work not only of the Ottomans but of all Muslims. The first donation, of 50,000 liras, came from Abdülhamid II; many officials also willingly gave up a month’s salary. At İzzet Pasha’s suggestion, nickel, silver and gold Hejaz Railway medals were struck for donors.
Help also came from beyond the borders. Foremost among the donors were the Muslims of India, Egypt, Russia and Morocco; money also arrived from Indonesia, South Africa and even America. The emirs of Morocco and Bukhara and the shah of Iran contributed as well.
Other Revenues: From Salary Deductions to Sacrificial Hides
As construction progressed, costs rose and it became clear that donations would not be enough. Compulsory deductions were then made from officials’ salaries, and donation stamps and postcards were put on sale. New fees and taxes were introduced, and the proceeds from selling the hides of sacrificial animals were also channeled into the fund. Money from the passengers and freight carried on the completed sections of the line was added to these sources too. In the end, one third of the fund came from donations and two thirds from other revenues, and between 1900 and 1908 revenues exceeded expenditure.
Who Built the Line? Soldiers, Engineers and Workers
The work was directed by the High Commission (Komisyon-ı Âli), set up under the chairmanship of the sultan. According to Gülsoy and Ochsenwald, the real manager behind the scenes was Ahmed İzzet Pasha, second secretary of the Mabeyn (the palace secretariat). Work in the field came under the commission in Damascus, while the Beirut Commission, set up in 1902, looked after the Haifa branch. Technical management was entrusted in 1901 to the German engineer Meissner. Of the forty-three engineers on the staff, seventeen were Turks and twelve were Germans.
As construction advanced, the number of European engineers declined and that of Ottoman engineers grew. The section in the holy lands, however, was built entirely by Muslim engineers; beyond Madain Salih the technicians and workers were Muslims as well. For many engineers who had graduated from the Mühendishane-i Berri-i Hümayun (Imperial School of Land Engineering), the line was also their first field of experience. In this way the foundations were laid for the expertise that railway construction in the Republican period would require.
Most of the labor force came from military units. Soldiers, whose numbers reached 7,500, dug earth, quarried stone and built walls under the direction of officers. Local people living along the line, known as “amele-i mükellefe” (obligated laborers), were also put to work. For skilled tasks such as tunneling, blasting with dynamite and laying rails, Italian, Russian, Montenegrin, Albanian and Greek (Rum) craftsmen were employed.
The soldiers were paid 1 to 3 kuruş per cubic meter or per meter of work done, and their discharge was brought forward. A narrow gauge of 1.05 meters was chosen because it was cheap and simple. Locomotives and rails came from Germany, Belgium and America; some passenger carriages were built at the Tersane-i Amire (Imperial Arsenal).
From Damascus to Medina: Stations and the 1908 Opening
Construction began between Damascus and Deraa. The rails reached Amman in 1903 and Ma’an, at kilometer 460, in 1904. At this point construction and operation were separated, and passenger and freight services began in 1905. The same year the line reached Mudawwara, in 1906 Madain Salih and in 1907 al-Ula. It finally arrived in Medina in 1908.
Having reached a length of 1,464 kilometers together with the Haifa branch, the Hejaz Railway was opened to traffic with a ceremony on 1 September 1908. Until Abdülhamid II was deposed in 1909, it was also referred to in official documents as the “Hamidiye Hejaz Railway”. By 1917 branches such as Afula–Lydda and Wadi al-Sur–al-Awja had been added, and the total length rose to 1,750 kilometers.
The Haifa Branch: The Hejaz Railway Reaches the Mediterranean
The concession to build the Haifa line had first been granted to a British company. According to Gülsoy and Ochsenwald, when the company failed, the line was bought together with its materials and completed in 1905. Deraa was thus linked to Haifa, and the railway reached the Mediterranean coast.
Before this, imported materials had been unloaded at Beirut and carried to Damascus on a French company’s line, and transit fees had been paid to the Beirut Quay Company. Once the branch opened, materials began to be unloaded at the port of Haifa. Over time Haifa, too, became an important city for imports and exports.
The Aqaba Question: Why Was There No Outlet to the Red Sea?
There was also a plan to lay a branch from Ma’an to the Gulf of Aqaba and so open an outlet to the Red Sea. This would make it easier to ship troops and weapons when needed and would strengthen the defense of these coasts. However, when Britain backed Egypt in the Ottoman-Egyptian border dispute of 1906, the branch was abandoned. According to the encyclopedia, the root cause of this episode, known as the “Aqaba question”, was Britain’s unwillingness to put its military superiority in the Red Sea at risk.
Was the Hejaz Railway to Be Extended to Yemen?
In its first stage, the Hejaz Railway had been planned to run from Damascus to Mecca. According to Gülsoy and Ochsenwald, linking it to Aqaba and Jeddah at a later stage, and even extending it as far as Yemen, was also being considered. The idea had a geographical logic. Mustafa Sabri Küçükaşcı writes that the old trade route running from the Yemeni city of Sanaa via Mecca and Medina to Damascus was the route followed by the railway that reached Medina. Yet the line was never extended beyond Medina; a railway to Yemen remained no more than a plan.
Two obstacles stood in the way of the Mecca and Jeddah extensions. The first was the Bedouin tribes. The tribes that carried pilgrims by camel from the ports of Yanbu and Jeddah and served as their guides and guards earned a large income from this business. The train would dry up these earnings; the tribal leaders also feared that their own power would be broken as Ottoman influence grew. In 1908 alone, 128 acts of sabotage and attacks targeted the railway and the telegraph wires; in a night raid at the end of July, nearly 300 soldiers were killed.
The second obstacle was Sharif Hussein, the emir of Mecca. According to the encyclopedia, Hussein knew that his political and military power would be broken if the line were extended to Mecca and Jeddah, and he used the sheikhs dependent on him against the railway. According to Küçükaşcı, he also stirred up the Bedouin between the two holy cities. The governments of the Committee of Union and Progress, for their part, shaken by the Tripolitanian and Balkan wars, chose to come to terms with him. In 1914 Hussein was granted new privileges, and it was announced that the Medina–Mecca and Jeddah–Mecca lines had been abandoned.
Pilgrimage by Train: Passengers, Fares and Station Towns
In 1909 trains ran in both directions every day on the Haifa–Damascus line and three days a week on the Damascus–Medina line. Departure times took prayer times into account, and one of the carriages was used as a “mosque car” (mescid vagonu). The number of passengers rose from 168,448 in 1910 to 232,563 in 1913. Between 1908 and 1913 the total number of passengers reached about 970,000.

For pilgrims, the biggest difference lay in time and cost. A 2-lira train ticket cost only about a tenth of the old travel expenses. In good conditions the journey took seventy-two hours. In 1911, 13,102 pilgrims came to Medina by train; on average 16,000 pilgrims used the line each year. Even so, the expected numbers were not reached; the encyclopedia attributes this to the failure to establish the link to Jeddah and Mecca and to the war years.
Abdülkadir Özcan’s Hajj entry, on the other hand, notes that the trains arriving in Medina mostly carried soldiers and munitions. The line was also used for freight: in 1913, 112,000 tons of commercial goods were carried.
Station Towns and a New Administrative Order
The Hejaz Railway also changed the places it passed through. The populations of Amman, Ma’an and Tabuk grew rapidly, and the trade of Damascus revived. According to Casim Avcı, at the end of the 19th century Tabuk was a village of about fifty households. Along with the station, houses, water towers, a hospital, a school and a mosque were built there. Some Bedouin settled down, and some Circassian immigrants also settled near the line.
According to Küçükaşcı’s Medina entry, after the line opened Medina was administratively separated from the Hejaz and became a sanjak directly attached to Istanbul. This arrangement displeased Sharif Hussein, the emir of Mecca, who lost his control over the city. According to Küçükaşcı’s Mecca entry, from then on the Ottoman administration, for its part, preferred to intervene in events in the region through Medina.
The First World War and After
The line’s military value soon became clear. Soldiers, weapons and provisions were carried to the region and to Yemen by this route; 77,761 soldiers were dispatched in 1910 and 147,587 in 1914. The 1910 unrest in the Hauran, Karak and Jabal al-Druze was also quickly put down thanks to the line. On 1 August 1914 the line was attached to the Ministry of Pious Foundations (Evkaf Nezareti) and counted as a waqf; when the war broke out, it passed to the Ministry of War (Harbiye Nezareti). According to the encyclopedia, this was the only transport investment in the world that was built by a state and counted as a waqf.
During the war, since coal could not be obtained, the locomotives ran on wood; shortages of oil and water, heavier traffic and attacks also slowed the trains down. In June 1916 Sharif Hussein reached an agreement with the British and rebelled; we described the general course of the revolt in our article Did Palestine betray the Ottomans? According to Küçükaşcı, the revolt began with the destruction of the railway and telegraph lines around Medina. Tabuk station was also wrecked in Bedouin attacks directed by British officers, but most of the line remained under Ottoman control.
The railway was the only means of transport that kept Medina connected to Damascus. The sacred relics in the city and thousands of civilians were also sent to Syria by train. The encyclopedia writes that the line had a large share in the city’s holding out until 1919. Defended by Fahreddin Pasha, the city surrendered on 10 January 1919, and with that Ottoman control over the line came to an end.
After the war the line was broken into four parts, divided among Palestine, Syria, Jordan and the Hashemite Kingdom of the Hejaz; the southernmost section later passed to Saudi Arabia. In 1948 a committee was set up to rebuild it, but the Arab-Israeli conflict closed the Deraa–Haifa section. In 1975 Jordan built a new line to the port of Aqaba to carry phosphate. In 1998, the year the entry was published, the section in Saudi Arabia was out of use and its stations stood derelict.
Frequently Asked Questions
When was the Hejaz Railway built?
Construction was decided by an imperial decree dated 2 May 1900, and work began on 1 September 1900. The rails reached the final stop in 1908, and the line was opened to traffic on 1 September 1908.
Did the Hejaz Railway reach as far as Yemen?
No. According to the TDV Encyclopedia of Islam, linking the line to Aqaba and Jeddah in the future, and even extending it to Yemen, had been considered. In the Ottoman period, however, none of these plans came true; rails could not be laid even from Medina to Mecca.
How long was the line?
Including the Haifa branch, it was 1,464 kilometers long in 1908. With the branches added by 1917, it reached 1,750 kilometers.
Why did the line not reach Mecca?
The Bedouin tribes and Sharif Hussein, the emir of Mecca, opposed the extension. In 1914 the governments of the Committee of Union and Progress also gave up the Medina–Mecca and Jeddah–Mecca lines.
Conclusion
The Hejaz Railway was presented to the public as a religious service that would shorten the pilgrimage route, but military and political aims were also foremost in its construction. The donation campaign found a wide echo in the Islamic world, yet two thirds of the fund came from other revenues. The line reached Medina in 1908, carried troops and played an important part in the city’s resistance during the war. The Mecca and Jeddah extensions, on the other hand, never materialized because of Bedouin resistance and Sharif Hussein’s opposition, and the Yemen line remained a plan. That is why the strategic importance of the Hejaz Railway for the Ottomans can be seen both in what it achieved and in what it left unfinished.
Sources
- TDV Encyclopedia of Islam, entry “Hicaz Demiryolu” (Hejaz Railway; Ufuk Gülsoy, William Ochsenwald)
- TDV Encyclopedia of Islam, entry “Hicaz” (Hejaz; Mustafa Sabri Küçükaşcı; Ottoman period: Zekeriya Kurşun)
- TDV Encyclopedia of Islam, entry “Medine” (Medina; Ottoman period: Mustafa Sabri Küçükaşcı)
- TDV Encyclopedia of Islam, entry “Hac” (Hajj; Ottoman period: Abdülkadir Özcan)
- TDV Encyclopedia of Islam, entry “Abdülhamid II” (Cevdet Küçük)