Construction of the Guizhou–Guangxi railway began under the Republic of China during World War II to provide the country's wartime capital, Chongqing, with an outlet to the sea. In April 1939, with the Japanese invasionthreateningJiangxi and Hunan Provinces, the Chinese government chose to abandon construction of the Hunan–Guizhou railway and shifted personnel southwestward to the Guizhou–Guangxi corridor. From September 1939 to February 1941, of track was laid in the plains from Liuzhou to Jinchengjiang. The Jinchengjiang to Dushan section was completed by May 1943, and gave rail access to the airfield at Dushan. Dushan served as a base for the Flying Tigers and reception point for the allied air shipments over "the hump" from India. The Qiangui railway was used to redistribute supplies to southern Guizhou and Guangxi. Pilots shot down and rescued in rural Guangxi and Guizhou were sent to stations along route and transported by rail back to Dushan. , Guizhou Over 200,000 workers were mobilized for the project in Guangxi and 30,000 in Guizhou. Over 2,000 workers died of disease and accidents. Work on the final section from Duyun to Guizhou was halted in 1944 with the Japanese Ichi-Go Offensive. In November 1944, the Japanese captured Liuzhou and proceeded to travel up the railway to attack southern Guizhou. The Chinese forces defending Mawei, Dushan and Duyun proceeded to destroy the railway and train cars. After the Japanese surrender in 1945, the Republican government began to repair the sections damaged by the war. The Chinese Civil War intervened and by 1949 only the Liuzhou-Jinchengjiang section had been restored. After the founding of the People's Republic of China in 1949, the new government removed rails from 300-km unrepaired section from Jinchengjiang to Qingtaipo to build the Hunan–Guangxi railway. Construction on the Jinchengjiang to Duyun section of the Guizhou–Guangxi railway resumed in 1955 and was completed in 1958. The entire line officially opened on January 7, 1959. Aside from the Guiyang to Guiding section which had double-track, the rest of the line was single track. Due to the mountain terrain and steep inclines on the line, average travel speed on the line was limited to for passenger service and for freight. From December 2004 to January 2009, the railway underwent reconstruction to expand capacity. The Luoman to Jinchengjiang section of the line was largely rebuilt. Entirely new lines were built between Jinchenjiang to Longli and between Liuzhou and Luoman. The Liuzhou to Longli section was electrified. As a result, the length of the line was shortened by. Travel speed rose to between Liuzhou and Jinchengjiang and between and between Jinchengjiang and Longli.