The Uganda Railway, also known as the Kenya-Uganda Railway, was a monumental infrastructure project that not only linked the Kenyan port city of Mombasa to the shores of Lake Victoria in Uganda, but also transformed the region’s economic and political landscape. This railway, built during the British colonial era, spanned a distance of over 1,000 kilometers and was heralded as one of the largest engineering feats of its time. The construction and operation of the railway shaped East Africa’s development for many decades, and its legacy continues to influence the region’s transportation networks today.
Initially conceptualized to support the British colonial interests in East Africa, the railway was intended to boost trade, control resources, and ensure military dominance over the vast and largely unexplored hinterlands. Over the years, the Uganda Railway evolved into a key component of the region’s economic infrastructure, providing vital transportation for people and goods between Kenya and Uganda. Yet, the history of its construction is marred by controversy, hardship, and challenges that have shaped its place in East African history.
The Origins of the Uganda Railway
The idea of a railway linking Mombasa to Uganda began in earnest in the late 19th century. By 1890, the Imperial British East Africa Company had already initiated road construction to facilitate trade across the region. However, it quickly became clear that a railway would be the most effective means of overcoming the logistical challenges posed by East Africa’s terrain.
In December 1891, Captain James Macdonald was tasked with conducting a survey for the proposed railway line. His mission to chart a route through the region involved months of difficult exploration, eventually producing a map of the area that would serve as the foundation for the railway’s construction. In 1895, British officials passed the Uganda Railway Act, and work officially began the following year.
Construction began in Mombasa in 1896, with the aim of reaching Lake Victoria in Kisumu (then called Port Florence). Despite the seemingly simple goal of building a railway, the project faced numerous obstacles, from technical challenges to the harsh physical environment. The railway’s construction was particularly difficult due to the rugged terrain, dangerous wildlife, and tropical diseases such as malaria, which claimed the lives of many workers.
Engineering Feat and Workforce
The Uganda Railway was built using a metre-gauge track, which was easier to lay and more suitable for the region’s terrain. It was an engineering challenge, requiring vast amounts of materials, including over 200,000 rail-lengths, 1.2 million sleepers, and 4.8 million steel keys. These materials were largely imported from India, and the railway’s construction necessitated the creation of a modern port at Kilindini Harbour in Mombasa.
One of the most significant aspects of the railway’s construction was the workforce. To address the shortage of local labor, the British turned to Indian workers, primarily from the Punjab and Gujarat regions. Over 30,000 Indian laborers were contracted to build the railway. Their working conditions were notoriously harsh, and many of them died due to diseases, accidents, and even wildlife attacks, such as those caused by the infamous Tsavo man-eating lions, which terrorized workers in 1898. These lions are part of the railway’s enduring legacy, and their story was immortalized in books and films, including The Ghost and the Darkness (1996).
Political and Economic Impact
The Uganda Railway had far-reaching implications for both Kenya and Uganda. Economically, the railway facilitated the movement of goods, including agricultural products, minerals, and people, between the interior and the port. This was especially important for Uganda, which was landlocked and reliant on Kenya for access to international markets. The railway also helped suppress the local slave trade by providing an alternative to human porters.
Politically, the railway played a strategic role in consolidating British colonial control over the region. It facilitated the movement of British troops and resources to maintain dominance over the African Great Lakes region. The railway was seen as a symbol of British imperial power, and it played a crucial role in the administration of the British Protectorates in Kenya and Uganda.
The Legacy of the Uganda Railway
The Uganda Railway was completed in 1901, but its legacy extended far beyond the colonial period. In the decades following its construction, the railway became a cornerstone of East Africa’s transportation infrastructure. It helped shape the economic development of the region, particularly in terms of facilitating trade between the coastal port and the interior regions.
In the 1920s, the Uganda Railway was merged with the Kenya and Uganda Railways and Harbours and later evolved into East African Railways, which continued to operate the rail system in Kenya, Uganda, and Tanzania until the 1970s. The railway’s infrastructure, however, began to deteriorate after independence, as political changes and economic challenges plagued the region.
Despite efforts to modernize the system, the railway struggled to compete with newer forms of transportation, such as trucks and buses. The last metre-gauge passenger train between Nairobi and Mombasa operated in 2017, marking the end of an era for the Uganda Railway’s traditional services. However, the construction of the Standard Gauge Railway (SGR) in recent years, running parallel to the Uganda Railway’s original route, symbolizes a new chapter in East Africa’s transportation network.
The Uganda Railway in Popular Culture
The Uganda Railway has left a lasting imprint on popular culture, particularly in terms of its role in the colonial history of East Africa. The infamous Tsavo lions and their attacks on workers are one of the most well-known aspects of the railway’s construction. The railway’s construction also serves as the backdrop for several novels, documentaries, and films, including John Halkin’s 1968 novel, Kenya, and the 1985 film Out of Africa, which featured scenes involving the Uganda Railway.
Additionally, the Lunatic Line, a term coined to describe the railway due to its exorbitant cost, dangerous construction, and harsh working conditions, has become part of the historical lexicon, symbolizing the risks and challenges associated with colonial infrastructure projects in Africa.







