The first section of the Beijing–Baotou railway, the
Imperial Peking–Kalgan railway (now the "Jingzhang" railway) was constructed between 1905 and 1909, connecting Beijing with
Zhangjiakou (Kalgan). This section was the first railway designed and built by Chinese. The chief engineer is
Zhan Tianyou. He overcame the steep gradient near
Badaling using a
switchback. Due to his achievement in constructing this railway, Zhan (Jeme) is called the father of China's railways. The railway was extended from
Zhangjiakou to
Hohhot by 1921 and to Baotou by 1923. Even with the switchback, the gradient near Qinglongqiao railway station is still at 3.3%. In addition, travelling through the switchback is slow. A bypass route, the
Fensha railway, was built in the 1950s between and along the
Yongding river. This route was considered but dropped by Zhan due to high construction cost. Before the 1990s, the Fengsha railway was mainly used to transport freight, and the original Jingzhang railway was focused on passenger transport. Now, trains to/from Baotou have changed to use the Fengsha railway instead. The
Beijing–Zhangjiakou intercity railway and the
Zhangjiakou–Hohhot high-speed railway, which both opened on 30 December 2019, parallel most of the line. To improve the freight capacity of
Tangshan–Hohhot railway, those two railway lines exchange their main line between
Hulu railway station and
Taobuqi railway station in September 2020, separating the freight and passenger corridors. Meanwhile the section between
Taigemu railway station and
Baotou railway station was also assigned to
Tangshan–Hohhot railway which has been renamed as
Tangshan–Baotou railway. ==Current operations==