The capital name was changed to Luangphabang, where it was kept, named after the Buddha image. Luang Prabang was briefly occupied by the Vietnamese forces during Emperor Lê Thánh Tông's 1478–1480 expedition against Lan Xang and Lanna. The capital was moved in 1560 by King Setthathirath I to Vientiane, which remains the capital today. In 1707, Lan Xang fell apart because of a dynastic struggle and Luang Prabang became the capital of the independent Kingdom of Luang Phrabang. When France annexed Laos, the French recognised Luang Prabang as the royal residence of Laos. Eventually, the ruler of Luang Prabang became synonymous with the figurehead of Laos. When Laos achieved independence, the king of Luang Prabang, Sisavang Vong, became the head of state of the Kingdom of Laos. The town was the scene of many events during and in the aftermath of World War II and it was occupied by several foreign countries during the war (Vichy France, Thailand, Imperial Japan, Free France, and Nationalist China). Initially the Vichy French controlled the city but lost it to Thai forces following the Franco-Thai War of 1940–1941. On 9 March 1945, a nationalist group declared Laos once more independent, with Luang Prabang as its capital but on 7 April 1945 two battalions of Japanese troops occupied the city. The Japanese attempted to force Sisavang Vong (the King of Luang Phrabang) to declare Laotian independence but on 8 April he instead simply declared an end to Laos' status as a French protectorate. The King then secretly sent Prince Kindavong to represent Laos to the Allied forces and Sisavang Vatthana as representative to the Japanese. Following Japan's surrender to the Allies, Free French forces were sent to reoccupy Laos and entered Luang Prabang on 25 August, at which time the King assured the French that Laos remained a French colonial protectorate. In September the Chinese Nationalist forces arrived to receive the surrender of the remaining Japanese forces but also quickly set about buying up the Laotian opium crop. In April and May 1946 the French attempted to recapture Laos by using paratroops to retake Vientiane and Luang Prabang and drive Phetsarath and the Lao Issara ministers out of Laos and into Thailand and Vietnam. During the First Indochina War the Viet Minh and Pathet Lao forces attempted to capture the city several times in 1953 and 1954 but were stopped before they could reach it by French forces.