[1] The tunnel runs under the boundary between Lampang and Lamphun Provinces.
Khun Tan Station, at the northern end of the tunnel, is the highest railway station in Thailand at an elevation of 578 m.[2] Historically the Khun Tan Range was a formidable natural barrier between the Kingdom of Chiang Mai and the Central Plain of Siam.
The Khun Tan Tunnel was built in 1907 under the southern part of the range.
It reduced the difficulties of travel between the cities of Bangkok and Chiang Mai.
Construction was disrupted owing to the arrest of its German engineers in World War I. Emil Eisenhofer, the German engineer who directed the Khun Tan Tunnel project.