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. It was established in 992 during the reign of Seongjong. Its name has been changed to Songgyungam in 1298 and to Songgyungwan in 1308. Its current name is Koryo (/Goryeo) Songgyungwan University/University of Light Industry. A similar institution, known as the Gukhak, had been established under Unified Silla, but it was not successful.
The Gukjagam was part of Seongjong's general program of Confucian reform, together with the gwageo civil service examinations and the hyanggyo provincial schools. It formed the cornerstone of the Confucian educational system he envisioned. 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.