The title gongen started being attached to the names of kami and shrines were built within the premises of large Buddhist temples to enshrine their tutelary kami. During the Japanese Middle Ages, shrines started being called with the name gongen to underline their ties to Buddhism. For example, in Eastern Japan there are still many Mount Haku shrines where the shrine itself is called either gongen or jinja. Because it represents the application of Buddhist terminology to native kami, the use of the term was legally abolished in the Meiji Restoration with the and shrines began to be called jinja.