The Pingxi Line running through the center of Shifen.
The Pingxi Line (Chinese: 平溪線; Hanyu Pinyin: Píngxī Xiàn; Tongyong Pinyin: Píngsi Siàn; Wade–Giles: P'ing2-hsi1 Hsien4) is a 12.9 km long, single-track railway branch line of the Taiwan Railway Administration. It runs through Ruifang and Pingxi Districts in New Taipei City.
The railroad was originally built to transport coal. It was completed in July 1921.
All trains have through service to the Yilan Line. Most trains terminate at either Houtong or Ruifang. Other trains go as far as Badu.