During the French colonial period, as the capital of French Indochina, Hanoi attracted a considerable number of French, Chinese and Vietnamese from the surrounding areas. In the 1940s the population of the city was 132,145. After the First Indochina War, many French and Chinese people left the city to either move south or repatriate.