Emporer Gia Long, founder of the Nguyen dynasty moved the capital from Hanoi to Hue in 1802. Here he built his Imperial City. From here, the Nguyen dynasty ruled Vietnam until 1945, although the French took the city in 1885, leaving them as nominal rulers only. In 1993 UNESCO designated Hue as a World Heritage Site.