The ritual dismantling of the shrines every 20 years (known as sengu-shiki) goes back to prehistoric times, when sacred structures tended to be erected for special ceremonies rather than as permanent places of worship.
Sengu-shiki is the custom of initiating a child into the clergy. 