During the Japanese invasions of Korea in 1592, King Seonjo of Joseon took refuge at Uiju, taking the ancestral tablets from Jongmyo and the shrines with him; the tablets were returned to Seoul in October of 1593.