The first, and only, railway in Djibouti is the metre gauge line linking the port of Djibouti with Addis Ababa, the capital of neighbouring Ethiopia. The first section of this line (Port of Djibouti to Dire Dawa, about 311km) opened in 1901. About 100km of the route lies within the borders of present day Djibouti.
In the late 20th / early 21st centuries the line was allowed to deteriorate. Services were erratic, although some rehabilitation work took place to allow traffic to continue.
In 2016, a new standard (1435mm) gauge electrified railway opened between Djibouti and Addis Ababa, replacing the old metre gauge route. The new line also serves the port of Doraleh, near Djibouti. It is operated on behalf of the respective governments by the Chinese contractors responsible for its construction.
There is a long term proposal for a line from Weldiya / Hara Gebeya in Ethiopia to a new port at Tadjurah.
Flag image from CIA World Factbook