The Hunan–Guangxi railway or Xianggui railway, 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.