TransNamib’s humble beginnings can be traced back to 1895 when a first local railway was constructed in 1895 by the Damaraland Guano Company for commercial purposes. The first public railway, and the core of the present system, was constructed by the German Colonial government. The 383 kilometres connection between Swakopmund and Windhoek was inaugurated on 19 June 1902. The German colonial railway was taken over by the Railways of South Africa after World War I and linked into the network of South Africa. After the independence of Namibia, TransNamib took control of the national rail network.