The Nanning–Kunming Railway or Nankun Railway (simplified Chinese: 南昆铁路; traditional Chinese: 南昆鐵路; pinyin: nánkūn tiělù), is a single-track electrified railroad in Southwest China between Nanning and Kunming, provincial capitals, respectively of Guangxi Zhuang Autonomous Region and Yunnan Province. The railway was built from December 24, 1990 to March 18, 1997 and has a total length of 898.7 km (558 mi), including the main line of 863.04 km (536 mi) between Nanning and Kunming and a branch line from Weishe Township of Xingyi City to Hongguo Township of Liupanshui municipality, in Guizhou province. The Nankun Railway is a major rail conduit in Southwest China. Major cities and towns along route include Nanning, Baise, Xingyi, Luoping and Kunming.
The Qingshuihe Railway Bridge (Qingshui River Railway Bridge) carries the railway across the deep gorge of the Quigshui River. It is one of the highest bridges in the world and the fifth highest railway bridge. The bridge is 590 feet (180 meters) high and has a 420-foot (128 meter) main span. The bridge opened in 2000.
The Nanning–Kunming Railway provides the shortest railway connection between Yunnan Province and China's sea ports on the Tonkin Gulf, such as Fangchenggang and Beihai, thus playing a role somewhat similar to that played by the Kunming–Hai Phong Railway before World War II.