The Northern Line (Thai: ทางรถไฟสายเหนือ) is a railway line in Thailand, running between the capital Bangkok (at Krung Thep Aphiwat Central Terminal) and the northern city of Chiang Mai (Chiang Mai railway station). It is the second longest railway line in Thailand at 751 kilometres (467 mi) long, has 130 operational stations and halts, and is operated by the State Railway of Thailand. The line first opened in 1896. Major cities served by the line include Bangkok, Ayutthaya, Nakhon Sawan, Phitsanulok, Lampang, and Chiang Mai.