In September 1859, E. & J. Pickering imported a steam locomotive built by Hawthorn & Co. from Leith, Scotland, intended for the construction of this line. The locomotive, nicknamed "Blackie" in South Africa for its black paint (1874-1897), was preserved as a national monument in 1936.

The Blackie steam locomotive is South Africa's first locomotive (Source: Wikimedia Commons. Photo credit: Danie van der Merwe)
The first section of the line to the Eerste River opened on February 13, 1862, while the full line was officially completed in 1863. Meanwhile, by 1864, the Vinberg Railway Company had connected Cape Town and Vinberg. During that period, railway development in the Cape Town area halted at Wellington, impeded by the Cape Town Fold Belt mountains.
In 1872, the Cape Colony became the first British colony to establish a responsible government, marking a milestone in colonial self-governance. John Molteno, a progressive politician who opposed racial and religious discrimination, became its first Prime Minister. In his inaugural speech to the local parliament, he proposed an extensive railway network to connect the Cape Colony’s main ports with its interior regions and, most importantly, key diamond deposits (following the previous year's diamond rush in Kimberley). He also announced plans to acquire all existing lines and establish the Cape Government Railway.

The Cape Government Railway logo at Cape Town Central Station. (Source: Wikimedia Commons)
In 1885, the network sections were connected and the “Western” Line reached Kimberley, completing the ambitious construction project as initially planned. In 1872, the total length of railways in the Cape Colony was 92 km; it has since expanded to over 2,000 km. In 1885, the company owned 231 locomotives, 399 passenger and 3,503 freight cars.

The Port Elizabeth–Uitenhagen Railway, a part of the "Median Line", 1882 (Source: Wikimedia Commons)

Pietermaritzburg railway station (Source: J. Forsyth Ingram, The Story of an African City, Maritzburg: C. Coester, 1898)

Johannesburg Park Station on the Rand Railway line linking Johannesburg and Boksburg, 1897 (Source: Wikimedia Commons)
On February 19, 1896, a tragic incident occurred at Braamfontein station in Johannesburg when a shunting locomotive collided with a train carrying dynamite for nearby gold mines. The resulting explosion became one of the largest non-nuclear blasts in history, killing at least 75 people and injuring over 300, while estimates suggest that between 1,500 and 3,000 houses were destroyed. The explosion could be heard from as far as 200 km away.

A 60 m by 50 m crater from a dynamite explosion at Braamfontein station on February 19, 1896 (Source: Wikimedia Commons. From the collection of photographs of the South African Museum in Amsterdam. Digitized in 2007.)
After its formation in 1910, the South Africa Union (SAU), a British Empire dominion made up of the Cape Colony, Natal, the Orange River Colony, and Transvaal, transferred its railway lines to the state-owned South African Railways (SAR). The new railway administration took over a vast network of 12,367 km, including 972 km that were previously privately owned. Railway infrastructure modernization began.

The Rovos Rail railway line in Pretoria. Photo: TASS

Th 1ES electric locomotive (formerly 1E Class) No. E145, built in 1938. Cape Town, 1975. Locomotives of this series had served the first electrified line in South Africa since 1925. (Source: Wikimedia Commons)
Focus was placed on both railway modernization and new construction. In the two decades since its establishment, SAR had constructed numerous railway branches primarily to support the agricultural sector. By late 1930, the total length of state railways had reached 18,640 km. However, during the Great Depression of the 1930s, the commissioning of new lines significantly declined.

A steam locomotive pulls a passenger train in Svartland. Photo: 123-RF / LegionMedia
Even so, the war transformed South Africa into an exporting nation, leading to a remarkable surge in mineral exports after 1946. SAR initiated a major modernization program for the main coastal lines to accommodate longer and heavier trains.

A tourist train on the Rovos Rail line from Pretoria to Victoria Falls. Photo by TASS

A 1958 General Electric diesel-electric locomotive, designated No. 31-005 (D704) by SAR. Later acquired by Sheltam and renumbered. May 19, 2010 (Source: Wikimedia Commons. Photo by Chris van Wyk)
The 1960s witnessed further electrification and the shift to diesel traction on railway lines. By the start of the next decade, steam locomotives were found only on inactive lines. The 1973 oil crisis accelerated railway electrification, resulting in a total of 6,893 km of electrified sections by 1979.

A railway line running along the ocean coast in Cape Town. Photo:123 RF / LegionMedia

Electric locomotive No. E1525 on the day of high-speed tests (Source: Wikimedia Commons. Photo credit: Philmar du Plessis)
The railway network continued to expand. For instance, in 1986, a 119 km line from Komatiport to Mpaka station in Swaziland (now Eswatini) offered a shorter route from Eastern Transvaal (now Mpumalanga Province) to Richards Bay. Additionally, the completion of a new railway line between De Durns and Kleinstraat on the Main Cape Highway in 1989 removed the limitations posed by sharp curves and a 40-degree slope that had hindered northbound traffic at the Hex River Pass.

The legendary 'Blue Train' express is passing through the Waterval-Boven – Waterval-Onder section in Mpumalanga Province (Source: www.nbcnews.com).
In 1989, South Africa actively began pursuing political reforms to end apartheid and implement economic changes. On April 1, 1990, the state-owned Transnet Limited was established. Transnet's main divisions included Spoornet (railways); Port Net (ports); Autonet (road transport) and Petronet (pipelines). A new corporate color scheme for railway rolling stock was introduced, incorporating orange, blue, and white elements.
With the lifting of legislative restrictions on road transport, railways encountered considerable competition. Consequently, no new locomotives were ordered for years, and unprofitable lines were closed, resulting in the cessation of railway services to many areas.
The interior of a Rovos Rail tourist train en route from Pretoria to Victoria Falls. Photo: TASS.
The 80 km Gautrain high-speed rail system, linking Johannesburg, Pretoria, Kempton Park, and O.R. Tambo International Airport, is a commendable project commissioned between 2010 and 2012, with trains reaching speeds of up to 160 km/h. Gautrain lines use 25 kV alternating current (50 Hz) and have a track gauge of 1,435 mm. After 130 years, standard-gauge rail has returned to South Africa.

Bombardier Electrostar electric train at O.R. Tambo Airport (Source: Wikimedia Commons)
High-speed rail may eventually be launched in the Republi of South Africa. The first HSR line is expected to connect Johannesburg and Durban.The Republic of South Africa
- The area is 1.2 million km2.
- As of early 2023, the railway network spanned 21,000 km.
- The length of electrified railway lines totals 8.1 thousand km.

A commuter passenger train on the Johannesburg - Naledi line. The line, constructed in 2023, runs through a Soweto slum. Photo: TASS
Promising transport initiatives in South Africa.- Construction of the 600-kilometer Johannesburg-Durban high-speed railway. Investment volume totals $30 billionA joint project of 1520International and the Institute of Economics and Transport Development (IETD)
- Construction of a 1,300 km high-speed railway between Johannesburg and Cape Town,
- and a 500 km high-speed railway between Johannesburg and Musina. The volume of investments – $ 20 billion
- Development of capacities in the new Port of Ngkura up to 20 million TEU per year by 2034.
- Construction of the 100 km Lothaire (South Africa) — Sidwokodwo (Eswatini) railway line. The volume of investments – $ 1.2 billion
- Construction of the 100 km Lephalale (South Africa) - Mahalapye (Botswana) railway line. The volume of investments is 2.5 billion dollars.