The Gukjagam, known at times as Gukhak or Seonggyungwan, was the highest educational institution of the Korean Goryeo dynasty.
It was located at the capital, Gaegyeong (modern-day Kaesong), and provided advanced training in the Chinese classics.
The Gukjagam was part of Seongjong's general program of Confucian reform, together with the gwageo civil service examinations and the hyanggyo provincial schools.
In the waning days of Goryeo, the Gukjagam again became a centerpiece of reform through the policies of the early Neo-Confucian scholar An Hyang.
The other three divisions were open to children of officials as low as the 8th rank: Seohak (secretarial training), Sanhak (arithmetic), and Yulhak (law).