The Imperial Academy Hue was established in 1803, right after King Gia Long unified the country and chose Hue as the capital. Initially, the school was named Doc Hoc Duong (or Quoc Hoc Duong), located in An Ninh Thuong Village, Huong Tra District, an area now belonging to An Binh Village, Kim Long Ward. The structure was situated next to the Temple of Literature and faced directly towards the Perfume River, a location chosen according to Confucian feng shui principles: close to water, airy, and in harmony with nature.
In 1820, King Minh Mang renamed the school to Imperial Academy (Quoc Tu Giam), ushering in a period of strong development for education under the Nguyen Dynasty. Just one year later, the school was expanded with the construction of Di Luan Duong as the main lecture hall, along with two rows of classrooms on both sides, each with 19 compartments. During the Tu Duc era (1848–1854), the complex was further expanded with a 9-compartment house, surrounding brick walls, living quarters for students, and two side gates exclusively for them. In 1854, King Tu Duc also composed an essay and a poem engraved on a stone stele erected in the schoolyard, demonstrating the high regard for knowledge and the studious tradition.

The school suffered severe damage from the Giap Thin typhoon in 1904, but was restored afterward. In 1908, under King Duy Tan, the Imperial Academy was moved into the Imperial City (the current location on 23 Thang 8 Street) for convenient management and ceremonial organization. In 1923, Tan Tho Vien became Khai Dinh Museum, while a new library named Bao Dai Library was built behind Di Luan Duong. The Imperial Academy operated until 1945, when the Nguyen Dynasty ended and Confucian education officially came to a close.
Over its more than 120 years of existence, the Imperial Academy Hue trained over 500 doctorates and junior doctorates, attracting scholars from across various localities, including royal descendants, students from aristocratic backgrounds, recommended scholars, and graduates. The first national exam was held in 1822, with the names of successful candidates engraved on steles placed at the adjacent Temple of Literature.


