The Main Line starts from Colombo and runs east and north past the rapidly developing centres of Ragama, Gampaha, Veyangoda, and Polgahawela. At Rambukkana, the Main Line begins its steep climb into the hills of the upcountry. Between Balana and Kadugannawa, the track clings to the side of sheer cliffs, offering passengers views of Batalegala. From Peradeniya Junction, a branch line reaches Kandy and Matale. The Main Line then continues its climb through tea country, connecting local market centres at Gampola, Nawalapitiya, and Hatton before reaching Nanu Oya. This is the connection to the former colonial resort of Nuwara Eliya, known for its temperate climate, classic hotels, and British-style gardens. The Main Line continues its ascent to the summit at Pattipola, above sea level, before descending past Bandarawela to Badulla. In the upcountry, passengers can view the tea gardens, mountains and valleys, cascading torrents and waterfalls.
History
The first segment of the Main line was opened in 1864, with the construction of the line from Colombo to Ambepussa, to the east. This was the first rail line in the country. The first train ran on 27 December 1864. The line was officially opened for traffic on 2 October 1865. The main reason for building a railway system in Sri Lanka was to transport tea and coffee from the hill country to Colombo. The Main Line was extended in stages with service to Kandy beginning in 1867, to Nawalapitiya in 1874, to Nanu Oya in 1885, to Bandarawela in 1894, and to Badulla in 1924. Till 1953, the Main line operated with steam locomotives. In the 1950s, service was enhanced with diesel locomotives, under the leadership of B. D. Rampala. Various types of diesel locomotives were added to the service. In 2011, ExpoRail and Rajadhani Express began operating a premium section on trains on the Main Line. These services were launched to improve rail transport's appeal tothe public. Sri Lanka Railways also began importing new diesel-multiple units to replace the aging rolling stock previously used on the line. Built by China's CSR Corporation Limited, the new S12 trainsets are designed to work on the steep gradients of the hill country. The commuter rail portion of the line, within the Colombo metropolitan area, is planned to be electrified, though no ground work has started.
Operators and service providers
Sri Lanka Railways operates most passenger services on the Main Line. Sri Lanka Railways' most notable services on the line includes the Udarata Menike, Podi Menike, Tikiri Menike, and Senkadagala Menike. ExpoRail and Rajadhani Express operate premium services on the Main Line. They run premium carriages attached to Sri Lanka Railways-operated trains.
Infrastructure
The Main Line has a gauge of broad gauge. The Main Line is not electrified. Regular services run on diesel power. However, there are plans to electrify the commuter rail network, within Colombo. This includes the Main-line segment between Colombo Fort and Veyangoda. Most of the line currently operates on a lock-and-block signaling system. The commuter rail section was upgraded to electric signalling in the mid-twentieth century. The system is connected to a centralised traffic control panel at Maradana Railway Station.