The first railway in Yunnan was the narrow gauge Yunnan–Vietnam Railway built by France from 1904 to 1910 to connect Kunming with Vietnam, then a French colony. In Yunnan, the Chinese section of this railway is known as the Yunnan-Hekou Railway and the line gave Yunnan access to the seaport at Haiphong. During the Second World War, Britain and the United States began building a railway from Yunnan to Burma but abandoned the effort due to Japanese advance.