During the Japanese occupation of the Dutch East Indies in World War II, the city was the headquarters for the Japanese 25th Army, the force that occupied Sumatra. The headquarters was moved to the city in April 1943 from Singapore and remained until the Japanese surrender in August 1945.
