Hyanggyo were Confucian schools built by the governments of Goryeo, Joseon, and the Korean Empire to educate and train officials in Confucian ideals and the ethics of government.