History The line began as the
Selangor Government Railway which connected Bukit Kuda just outside Klang to
Kuala Lumpur, opened in September 1886. In 1890 a bridge across the
Klang River was constructed, allowing the railway to be re-routed to and henceforth towards
downtown Klang. The line was extended towards
Segambut and
Rawang in 1892, as a branch line from the
Resident station. The railway reached
Kuala Kubu Bharu in 1894 and finally
Port Klang in 1899. In 1989
railbus services were offered on the –Port Klang stretch. The same stretch, along with the
Rawang–Seremban stretch, were electrified in the 1990s. Electrification was later extended to in 2009. During colonial rule, there used to be a branch line from to
Kuala Selangor; the branch line was dismantled between 1931 and 1934. At present, the Tanjung Malim–Port Klang Line is the oldest existing (and still operational) railway line in the country, taking the title after the –
Port Weld line was dismantled in 1987.
Stations :⇄ =
cross-platform interchange KTM Komuter Trial Route A new route for
KTM Komuter services was introduced in preparation of the infrastructure upgrading works in the Klang Valley Double Tracking project in April 2016. It aimed to increase the frequency and the smooth running of the
KTM ETS,
KTM Komuter,
KTM Intercity & Freight at the Central Sector. The original Port Klang Line from Batu Caves-Port Klang route was changed to Rawang-Port Klang effective 15 December 2015.
Former Rawang–Tanjung Malim shuttle service The KTM Komuter service was expanded to include three new stations beyond Rawang on 21 April 2007, under what was then known as the Rawang-Rasa shuttle service. The stations were , , and . This 22 km stretch was the first portion of the
Rawang-Ipoh double tracking and electrification project to become operational. The service was extended to on 5 January 2008. It was further extended to on 1 June 2009, and the service was renamed as the Rawang-Tanjung Malim shuttle service. Until 11 July 2016, passengers had to disembark at and transfer to the Rawang-Tanjung Malim shuttle service for stations north of Rawang. Service ran at 30 minutes interval. The first and last trains to leave Rawang are at 05:42 and 21:24 while the first and last trains leaving Tanjung Malim are at 05:42 and 21:54. Journey time between Rawang and Tanjung Malim is 45 minutes. Beginning 12 July 2016, the Rawang-Tanjung Malim shuttle was terminated and was fully integrated into the Port Klang Line as a through service, with trains running all the way to Tanjung Malim. The line was effectively named the Tanjung Malim–Port Klang Line.
KL Sentral–Terminal Skypark Line (Skypark Link) Since May 2018, a branch line of the Tanjung Malim–Port Klang Line was opened and extended to that serves the
Sultan Abdul Aziz Shah Airport (Subang Airport). The line branches off to Subang Airport after . The line is served by KTM Komuter's
KL Sentral–Terminal Skypark Line (formerly known as
Skypark Link), which runs an express Komuter service between and Terminal Skypark, only stopping at Subang Jaya station in between. The service is currently suspended due to low ridership.
Service suspension at city centre and Segambut stations From 3 June 2018 until early 2019, Tanjung Malim–Port Klang Line services at three stations in downtown Kuala Lumpur – , and , as well as were unavailable during off-peak hours, i.e. between 8 am and 6 pm, to facilitate track upgrading services (KVDT). For the three city-centre stations - Putra, Bank Negara and Kuala Lumpur, Port Klang-bound trains served the stations between 06:30 and 07:50, while Tanjong Malim-bound trains called at the stations between 17:45 and 19:45. For Segambut station, only six trains served the station everyday: three towards Tanjong Malim in the morning, and three towards Port Klang in the evening. Free shuttle buses on the route
KTM3, provided by
Rapid KL, provided a link between Segambut station and . During off-peak hours, trains only shuttled between KL Sentral and , and between and stations only. An hourly shuttle service between and was also introduced. Passengers could still travel to the
Kuala Lumpur city centre on the
MRT Kajang Line at , or on the
LRT Kelana Jaya Line at and .
Peak hour limited service between KL Sentral–Port Klang From 20 January 2025 to 31 December 2025, Tanjung Malim–Port Klang Line services at stations between KL Sentral and Port Klang operated with an improved peak hour-only schedule, from Port Klang to KL Sentral with 6 trains in the morning from 6.03 am to 8.33 am (6.33 am - 9.03 am on weekends) with 30 minutes interval and from KL Sentral to Port Klang with 6 trains in the evening from 5.41 pm to 9.11 pm with 30- to 60 minutes interval, to facilitate the KVDT Phase 2 track upgrading project. During off-peak hours, trains will only shuttle between KL Sentral and Tanjung Malim. For trips to Port Klang, passengers can use the
LRT Kelana Jaya line service from KL Sentral to Subang Jaya station (or any available bus services from the stations between the KL Sentral-Subang Jaya alignment, such as RapidKL routes 641 or 782), then ride the free shuttle bus services provided at Subang Jaya station to selected Komuter stations with 30 minutes interval, operates from 7.00 am to 11.00 pm. The first route provides a link between Subang Jaya station and , and ; the second route links Subang Jaya with ; the third route links Subang Jaya with ; the fourth links Subang Jaya with ; and the fifth route links Subang Jaya with . ==Future infill stations==