After the Japanese invasion of Thailand (8 December 1941), the southeast Asian kingdom signed a treaty of alliance with Japan and declared war on the United States and the United Kingdom. The Allies dropped 18,583 bombs on Thailand during the war, resulting in the death of 8,711 people and the destruction of 9,616 buildings. The primary target of the campaign was Bangkok, the Thai capital. Rural areas were almost entirely unaffected.