From 1010 until 1802, it was the most important political centre of Vietnam. It was eclipsed by Huế, the imperial capital of Vietnam during the Nguyễn Dynasty (1802–1945). In 1873 Hanoi was conquered by the French. From 1883 to 1945, the city was the administrative center of the colony of French Indochina. The French built a modern administrative city south of Old Hanoi, creating broad, perpendicular tree-lined avenues of opera, churches, public buildings, and luxury villas, but they also destroyed large parts of the city, shedding or reducing the size of lakes and canals, while also clearing out various imperial palaces and citadels.