 From 1940 to 1945, Hanoi was occupied by the Japanese forces.On 6 January 1946, the National Assembly of the Democratic Republic of Vietnam designated Hanoi as the capital of the newly-independent country, which would last during the First Indochina War (1946–1954) and the Vietnam War (1955–1975).Following North Vietnamese victory in 1975, Hanoi has been the capital of a reunified Vietnam since 1976.