In 682 under the reign of King Sinmun, the five-mausoleum system for religious services for ancestral mausoleums in Silla was established in order to enshrine the souls of the five kings of his father King Munmu, grandfather King Muyeol, great-grandfather Galmunwang 文興 (Kim 龍春), great-great-grandfather King Jinpyeong, and progenitor Great King (the earliest ancestor of the royal line of the Kim clan, the 13th Michu Isageum).
神文王の7年（687年）に新羅の祖廟の祭祀として、神文王にとっては父の文武王、祖父武烈王、曽祖父文興葛文王（金龍春）、高祖父真平王、及び太祖大王（金氏王統の始祖である13代味鄒尼師今）の五廟の制度が整備された。