The Burma-Thailand railway (known also as the Thailand-Burma or Burma–Siam railway) was built in 1942–43. Its purpose was to supply the Japanese forces in Burma, bypassing the sea routes which had become vulnerable when Japanese naval strength was reduced in the Battles of the Coral Sea and Midway in May and June 1942.