The Hunan–Guangxi Railway or Xianggui Railway (simplified Chinese: 湘桂铁路; traditional Chinese: 湘桂鐵路; pinyin: xiāngguì tiělù), is a mostly electrified railroad in southern China that connects Hunan province and the Guangxi Zhuang Autonomous Region. The shortform name of the line, Xianggui, is named after the Chinese short names of Hunan, Xiang and Guangxi, Gui. The line runs 1,013 km (629 mi) from Hengyang in Hunan to Friendship Pass on Guangxi's border with Vietnam. Major cities along route include Hengyang, Yongzhou, Guilin, Liuzhou, Nanning, Pingxiang, and Friendship Pass.
The original single-track Xianggui Line was built in sections from 1937-1939 and 1950-1955.
In December 2008, construction began on a capacity-expansion project to a new pair of 723.7 km (450 mi) electrified tracks from Hengyang to Nanning, which will create a three-track line of 497.9 km (309 mi) between Hengyang and Liuzhou and a four-track line of 225.8 km (140 mi) between Liuzhou and Nanning. The expansion project was completed in December 2013. The new double-track from Hengyang to Liuzhou is called the Hengyang-Liuzhou Intercity Railway and the new double-track from Liuzhou to Nanning is called the Liuzhou–Nanning Intercity Railway.
As of May 2014[update], the southern-most section of the Xianggui Line, from Nanning to Pingxiang on the Vietnamese border, is undergoing capacity expansion to accommodate high-speed trains.