Hanoi's name has remained relatively consistent throughout history, with slight variations. The city was originally known as "Thăng Long" (Rising Dragon) when it was founded in 1010 AD by King Lý Thái Tổ. In 1054, the name changed to "Lý Thành" (City of Lý). Later, during the Le Dynasty (1397-1788), it became "Đông Đô" (Eastern Capital). Finally, in 1802, Emperor Gia Long renamed the city "Hà Nội" which literally means "Inner City" or "Capital City," reflecting its location within the protective walls surrounding the old citadel. So, Hanoi has had several name changes but has been officially called Hà Nội since the early 19th century.