In Beijing, the Jingyuan Line begins at the Shijingshan South Railway Station, a junction with the Fengtai-Shacheng railway in Fengtai District west of the city, and runs westward through Shijingshan District and Fangshan Districts into the Western Hills. The line passes Zhoukoudian and follows the gorge of Juma River from Sandu in western Fangshan, upriver to Laiyuan in Hebei Province. Along the way, the line passes through scenic areas including Shidu, the Great Wall at Zijingguan, and the Eastern Qing Tombs. From Laiyuan, the line continues westward through the Taihang Mountains into Shanxi. West of Lingqiu, the line follows the Hutuo River into the Yiding Basin, where the line runs between the Heng and Wutai Mountains to Dai County and Yuanping. At Yuanping, the line connects to the Datong-Puzhou railway.