Uigeumbu (Hangul:의금부; Hanja: 義禁府), also known as Geum-o or Wangbu in the Joseon dynasty of Korea, was the royal law enforcement body responsible for prosecuting treason and moral crimes based on Confucian principles (Korean: 강상죄).
Toward the demise of the Goryeo dynasty, amid rampant corruption and chaos, Sunmaso's powers grew and came to include monitoring public officials in concert with Saheonbu (Korean: 사헌부; Hanja: 司憲府), quelling rebellion, routing foreign invasions, and defending the monarchy.
In the late Goryeo dynasty, Sunmaso was renamed Sungunmanhobu (Korean: 순군만호부; Hanja: 巡軍萬戶府), indicating direct Mongolian influence.
Later, Taejong reformed Uiyongsungeumsa, renaming it Uigeumbu (Korean: 의금부; Hanja: 義禁府) and making it purely a law enforcement body, rid of military functions, that dealt with special crimes of treason, lèse-majesté, and violations of Confucian principles, such as adultery or impiety.
[3] According to Gyeongguk daejeon, Joseon's national code of law, the codification of which was started by Sejo and completed by Seongjong, about 200 officials were responsible for handling judicial matters.