In 1912, Yazhou became Yaxian (Yai-hsien) (; postal: Aihsien). Japan then occupied the area during the Second Sino-Japanese War (19371945) and the city then became a naval port for the Second Fleet of the Imperial Japanese Navy and the main embarkation point for the Japanese Invasion of Malaya and Thailand.