Jongmyo is the oldest and most authentic of the Confucian royal shrines to have been preserved. Dedicated to the forefathers of the Joseon dynasty (1392–1910), the shrine has existed in its present form since the 16th century and houses tablets bearing the teachings of members of the former royal family. Ritual ceremonies linking music, song and dance still take place there, perpetuating a tradition that goes back to the 14th century. ongmyo is a shrine housing the spirit tablets of the former kings and queens of the Joseon Dynasty. The shrine is a symbolic structure that conveys the legitimacy of the royal family, where the king visited regularly to participate in the ancestral rites to wish for the safety and security of the people and state. Jongmyo is the oldest and most authentic of the Confucian royal ancestral shrines, with a unique spatial layout that has been preserved in its entirety. It was originally built in the late 14th century, but was destroyed during the Japanese invasion during the 16th century, and was rebuilt in the early 17th century with a few expansions made to the buildings thereafter.