# History of Shinto

Shinto is a religion native to Japan with a centuries'-long history tied to various influences in origin.
Although historians debate the point at which it is suitable to begin referring to Shinto as a distinct religion, kami veneration has been traced back to Japan's Yayoi period (300 BCE to CE 300). Buddhism entered Japan at the end of the Kofun period (CE 300 to 538) and spread rapidly. Religious syncretization made kami worship and Buddhism functionally inseparable, a process called shinbutsu-shūgō. The kami came to be viewed as part of Buddhist cosmology and were increasingly depicted anthropomorphically. The earliest written tradition regarding kami worship was recorded in the 8th-century Kojiki and Nihon Shoki. In ensuing centuries, shinbutsu-shūgō was adopted by Japan's Imperial household. During the Meiji era (1868 to 1912), Japan's nationalist leadership expelled Buddhist influence from kami worship and formed State Shinto, which some historians regard as the origin of Shinto as a distinct religion. Shrines came under growing government influence and citizens were encouraged to worship the emperor as a kami. With the formation of the Japanese Empire in the early 20th century, Shinto was exported to other areas of East Asia. Following Japan's defeat in World War II, Shinto was formally separated from the state.
Even among experts, there are no settled theories on what Shinto is or how far it should be included, and there are no settled theories on where the history of Shinto begins. The Shinto scholar Okada Chuangji [ja] says that the "origin" of Shinto was completed from the Yayoi period to the Kofun period, but as for the timing of the establishment of a systematic Shinto, he says that it is not clear.
There are four main theories.
* The theory that it was established in the 7th century with the Ritsuryo system (Okada Souji et al.)
* The theory that the awareness of "Shinto" was born and established at the Imperial Court in the 8th–9th century (Masao Takatori et al.)
* The theory that Shinto permeated the provinces during the 11th and 12th centuries (Inoue Kanji et al.)
* The theory that Yoshida Shinto was founded in the 15th century (Toshio Kuroda et al.)

## Overview

Although there is no definitive theory on the origin of Shinto as a religion; its origins date back to the ancient history of Japan. Based on rice cultivation introduced at the end of the Jōmon period and at the start of the Yayoi period, nature worship, which views nature as one with some god, arose in the Japanese archipelago. These beliefs were spread throughout the archipelago as a national festival by the Yamato Kingship in the Kofun era. Rituals were held at the first Shinto shrines such as Munakata Taisha and Ōmiwa Shrine, and the prototype of Shinto was formed. In the Asuka period, the ritual system, shrines, and ceremonies were developed along with the establishment of the Ritsuryo, and the Ritsuryo rituals were formed with the involvement of the Diviners as the administrative body. Ritsuryo rituals were formed in which the Department of Divinities The Tang dynasty rituals were used as a reference for the regulations of the management and operation of rituals in the ritual system. In the following Nara period, the Kojiki and the Nihon Shoki were compiled as Japanese mythology along with the national history, and the rituals and the Emperor's family were connected. In the Heian period, the Ritsuryo system was relaxed and the emperor and his vassals became directly involved in the rituals of local shrines without going through the Shinto priests. In addition to this, Shinbutsu-shūgō, a phenomenon of Shinbutsu-shūgō, in which Buddhism was fused with this belief in gods, also occurred in ancient Japan, while the idea of Shinbutsu segregation, in which rituals were distinct from Buddhism, was also seen. In addition, beliefs such as Shugendo and Onmyōdō were established in Japan, and these also influenced Shinto.
In the Middle Ages, there was a widespread movement to doctrinize and internalize Shinto. In the Kamakura period, the Kamakura shogunate's veneration protected shrines in various regions, and among the common people, Kumano, Hachiman, Inari, Ise, and Tenjin came to be widely worshipped across regions. In the midst of this spread of Shinto, the intellectual class began to use Buddhist theories to interpret Shinto, starting with the Esoteric Buddhist monk's dualistic Shinto, and advocated such theories as Honji Suijaku theory, which held that the Shinto gods were incarnations of Buddha. In response to this, the Shinto shrines, feeling threatened, systematized the inverted Honji Suijaku theory, which placed their gods above Buddha, against the backdrop of the rise of Shinto after the victory over the Mongol invaders, and established Ise Shinto, which uses the Five Books of Shinto as its basic scripture. In addition, Yoshida Kanetomo, who lost many ancient books in the Ōnin War of the Muromachi period, took the opportunity to forge sutras to create the first Shinto theory that had its own doctrine, sutras, and rituals independent of Buddhism. Yoshida Kanetomo took this opportunity to create the first Shinto theory, Yoshida Shintō, which was the first Shinto theory to have a doctrine, scripture, and rituals. From the Sengoku era to the Azuchi-Momoyama period, Yoshida Shinto was involved in the construction of shrines that enshrined warring feudal lords as gods.
In the Edo period, which constitutes a large part of the Early modern period in Japan, the Tokugawa shogunate reorganized the administration of shrines. On the other hand, Buddhism, which had attained the status of a state religion, was in a period of stagnation as an ideology. In this context, in the early Edo period, mainstream Shinto, from the standpoint of criticism of Buddhism, became increasingly associated with the Confucianism of the Cheng-Zhu school, and shifted to Confucian Shinto such as Taruka Shinto. In the mid-Edo period, Kokugaku, which integrated Shinto with the empirical study of Japanese classics such as poetry and languages, developed and flourished, replacing Confucian Shinto. The Kokugaku scholar Motoori Norinaga strongly criticized the interpretation of Shinto in terms of Chinese-derived Buddhist and Confucian doctrines, and insisted on conducting empirical studies of Shinto scriptures. In the late Edo period, Norinaga's theology was critically inherited by Fukko Shinto. Fukko Shinto, influenced by Christianity, emphasized the afterlife, as well as Chinese mythology, Hindu mythology, Christian mythology, and other myths from around the world were claimed to be accents of Japanese mythology, and were involved in the subsequent restoration of the monarchy. On the other hand, in the Mito Domain, the Late Mito Studies, which integrated Confucian ethics such as loyalty, filial piety, and humanity with national studies, was developed in response to the criticism of Norinaga, who rejected Confucianism. Late Mito studies, which advocated the rule of Japan by the emperor by combining Confucianism and Shinto, became the nursery ground for the ideas of the Shishi at the end of the Edo period.
When the Shogunate was overthrown and Japan began to move toward the Late modern period, the new government set the goal of unity of Shinto and politics through the Great Decree of Restoration of the Monarchy. In addition to the propagation of Shinto based on the Daikyo Declaration, the Shinbutsu bunri led to the separation of Shinto and Buddhism, and in some cases, the Haibutsu kishaku, the destruction of temples and Buddhist statues. The Meiji government then formed the State Shinto system in which the state controlled shrines as state religious services. Later, when the Separation of church and state led to the expulsion of the ritualists, the theory of non-religious shrines was adopted, which gave shrines a public character by defining them as not being religions, and local shrines were separated from public spending. In response to this, Priests organized the National Association of Priests and launched a movement to restore the power of the Shinto priests, demanding that the government make public expenditures. The Kannushi organized the National Association of Shinto Priests and launched a movement to restore the Shinto officialdom, demanding that the government make public expenditures. After the end of World War II, the Shinto Directive by the GHQ dismantled the state Shinto system, which was considered the root of Nationalism ideology. The Shinto Directive by the State Shinto of the Shinto Directive dismantled the state Shinto system, and shrines were transformed into religious corporations with the Association of Shinto Shrines as the umbrella organization. Although shrines thus lost their official position in modern times, some shrines have since achieved economic prosperity through free religious activities, and Shinto plays a certain role in Japan's annual events and life rituals.

## Ancient times
### Pre-Ritsuryō Rituals

As rice cultivation spread through the Japanese archipelago from the late Jomon into the Yayoi period, a type of nature worship based on the cultivation of rice also arose. This belief was based on the idea that nature and the kami were one, and that sacrifices and rituals prevented the kami from ravishing the land in the form of natural disasters.
In the Yayoi period, several Shinto practices appeared that had clear similarities to those seen in the Kojiki and Nihon Shoki. Archeological finds supporting this include finds believed to be in a similar vein as shrines, such as a new style of square-shaped burial mounds (方形周溝墓, hōkei shūkōbo), bronze ritualistic items from archeological sites including the Kōjindani Site, and large buildings with freestanding roof pillars (独立棟持柱, dokuritsu munamochi-bashira), an architectural feature in common with later shrines, an example of which is seen at the Ikegami-Sone Site. Charred bones of deer and other animals used for divination have also been found in the vicinity of such sites, as well as grave goods such as mirrors, swords, and beads.
Around the 3rd century, what would become the Makimuku ruins began to develop in the Yamato Province near Mount Miwa, and early, large-scale zenpokoenfun began to emerge as well, such as the Hashihaka kofun. It is believed the Yamato Kingship was established in this period. The 3rd century is also the estimated time of creation of the triangular-rimmed shinjūkyō passed down by the Kagami-tsukurinimasu Amateru-mitama Jinja (鏡作坐天照御魂神社) shrine as well as the iron sword excavated at Isonokami Shrine. These objects resemble the holy sword and mirror described in the Kojiki and Nihon Shiki, and allowed for a clearer understanding of elements that would lead to the Shinto faith later.
The first state Shinto rituals occurred in the 4th century. Large numbers of religious artifacts such as bronze mirrors and iron weapons with similarities to the kofun grave goods of the late 4th century in the Yamato region have been excavated from Munakata Taisha on Okinoshima in Munakata, Fukuoka. This indicates that Yamato Kingship rituals began on Okinoshima prior to this. Ritual objects such as small bronze mirrors have also been excavated at Mount Miwa which match those at Munakata Taisha, which lends credibility to the theory that rituals at Mount Miwa (home later to the Ōmiwa Shrine) began at approximately the same time as those on Okinoshima. It is believed that the 4th century, with the rituals held at the early shrines of Munaka Taisha and Ōmiwa Shrine, was when the base of the following Shinto faith developed.
The 5th century sees the spread sekisei mozōhin (石製模造品, small pieces of stone shaped like larger objects such as tools) across Japan. These were originally used in rituals in the Yamato region, and their spread suggests the Yamato Kingship expanded across the Japanese archipelago. Of particular note are the many sekisei mozōhin of haji pottery, takatsuki tables, and magatama beads discovered on the eastern side of the country at the Miyanaka Jōri Site Ōfunatsu of Kashima, Ibaraki or the Odaki Ryōgenji Site in Minamibōsō, Chiba, which indicates Yamato Kingship rituals were taking place in these locations. It is believed the Imperial Court later valued the rituals in these regions which led to the establishment of the Kashima Shrine and Awa Shrine with defined holy precincts (神郡, shingun).
Other religious objects of the 5th century include iron grave goods in kofun, as well as sue pottery and cloth excavated from various sites including the Senzokudai Site in Chiba Prefecture and Shussaku Site in Ehime Prefecture, and, therefore, this era is believed to be when the precursors of modern Shinto religious offerings (幣帛, heihaku) developed.
The 6th century brings changes in kofun funerary rituals and a shift from vertical stone burial chambers to horizontal. The exact nature of these kofun funerary rituals was determined by researching haniwa clay figures depicting people using weapons or tools, gifted animals, and nobles riding horses. These figures give a concrete view at these rituals. The shift from vertical to horizontal stone burial chambers suggests the development of beliefs about the nature of the soul in which the soul leaves the body after death. This can be seen in myths in the Kojiki and Nihon Shiki and is believed to have had an impact on the formation of belief in kami with humanlike aspects.

### Formation of Ritsuryō Rituals

In the 7th century, the establishment of the Ritsuryō system began primarily during the Tenmu period and Jitō period, during which Shinto underwent a major transformation. The systemization of Shinto and the development of an institutional framework of its rituals progressed based on the faiths formed from the Kofun period onward while incorporating aspects from external beliefs, as ritual systems, shrines, and ceremonies developed.
The public ritual system of the ritsuryō state was developed in accordance with the Jingi Ryō (神祇令, lit. "Code of the Kami"). It is believed the Jingo Ryō was established at the same stage as the Asuka Kiyomihara Code and that codes from the Tang dynasty were used as reference. While the regulations for the management and administration of the rituals did follow in accordance with this code, the nature of the rituals was almost entirely unique to Japan, meaning the Jingi Ryō can be thought of as a reformation of Japan-specific religious beliefs based on the Tang code.
The Jingi Ryō established the Department of Divinities, the administrative department for overseeing rituals, as well as the director position the jingi-haku (神祇伯). It was under this jingi-haku that 13 types of rituals were established as state rituals and regulated to occur in accordance with the seasons. These were the Kinen-sai, Chinka-Sai (鎮花祭), Kanmiso-no-Matsuri (神衣祭), Saikusa-no-Matsuri (三枝祭), Ōimi-no-Matsuri (大忌祭), Tatsuta Matsuri (龍田祭), Hoshizume-no-Matsuri (鎮火祭), Michiae-no-Matsuri (道饗祭), Tsukinami-no-Matsuri (月次祭), Kannamesai Festival, Ainame-no-Matsuri (相嘗祭), Mitamashizume-no-Matsuri (鎮魂祭), and Daijō-sai (Niiname-no-Matsuri). The Kinen-sai held in the second month of the lunar calendar as an advance celebration of good harvest. The Chinka-Sai held in the third month of the lunar calendar as flowers petals scatter is held to send off evil spirits. The Tatsuta Matsuri, a prayer to prevent wind damage from typhoons, and the Oimi-no-Matsuri, a prayer to prevent water disasters, are both held in the fourth and eleventh months of the lunar calendar. And just as the Niiname-no-Matsuri held in the eleventh month of the lunar calendar was to show gratitude for freshly harvested grain, the Ritsuryō rituals were characterized by a strong link with the harvest, aligning with the change of the seasons to show gratitude for the blessings of nature which were needed for agriculture. Regulations required the purification of a government official, and there are two types of purifications within the Ritsuryō rituals: the araimi (荒忌), and the maimi (真忌). The maimi consists of the official abstaining entirely from their duties to undergo purification as they dedicate themselves to preparing for the ritual. The araimi only requires abstaining from the rokujiki no kinki (六色の禁法, lit. "six types of taboos") while continuing their duties. The six taboos are mourning, visiting the ill, consuming the meat of four-legged mammals, carrying out executions or sentencing criminals, playing music, and coming in contact with impurities. The government officials could be punished if they failed to conform to this requirement. The festivals were divided into major, medium, and minor rituals depending on the length of the time required for the purifications. For example, a major ritual (of which there is only the Daijō-sai) requires an araimi of one month and a maimi of three days.
Out of the several Ritsuryō state rituals, the Kinen-sai, Tsukinami-no-Matsuri, and Onie-matsuri included a ritual format unique to Japan called heibu (班幣). This involved the Department of Divinities calling an assembly of priests from every formally recognized shrine in the country, where the Nakatomi clan performed ritual prayers and the Inbe clan distributed religious offerings called heihaku to the priests. The priests took the heihaku to offer to the kami of each of their shrines. There were also regulations for the Ōharae-shiki, in which the Nakatomi clan first offered an ōnusa to the emperor, and the Yamatonoaya clan and Kawachinohumi clan offered a harae-no-tachi (祓刀, sword used for purification) as well as performed the reading of ritual incantations. Then, a large group of male and female court officials gathered at the haraido (祓所, purified ritual location) in the suzakumon where the Nakatomi clan read purification incantations and divinators of the imperial court performed the purification.
Up until this point, many shrines had no actual buildings, but these buildings started to become established in this period, particularly at officially recognized shrines. The shinkai ranking system was also established at this time, and shrines at which miracles occurred were assigned a jinpu (神封) (a shrine equivalent of a fuko (封戸) which established the shrine as a partial tax recipient) and a shinkai rank, and particularly venerated shrines were given a shingun holy precinct. Some shrines also received a type of citizen assigned to the shrine known as kanbe (神戸) as well as shrine-owned farm fields called kanda (神田) in which they worked to support the economic requirements of the shrine. Regions without officially-recognized shrines continued without physical shrine buildings. Someone was selected to act as the hafuri (祝), a person in charge of rituals, and they conducted agriculture-related rituals in spring, when the rice was planted, and fall, at harvest, to thank the kami. However, as time went on, government officials began visiting these places where the rituals were held where they informed the locals of the country's laws, adding an official aspect to these rituals, and the establishment of physical shrines spread across the country.
The ritual system of the Ise Grand Shrine was also developed during this period, and, during the reign of Emperor Temmu, the yuki (悠紀) and suki (主基) (regions to provide rice for the emperor's ascension ceremony) were selected through divination, and the emperor would dine with Amaterasu while facing the direction of Ise, which formed the Daijō-sai as it is known in its modern form. The saiō system also came to be in which an unmarried female member of the imperial family was sent to serve at the Ise Grand Shrine, and the practice at the Ise Grand Shrine of shikinen-sengū (式年遷宮) began during the reign of Empress Jitō which is the practice of rebuilding all the shrines buildings at once every approximately 20 years.
Shinto had an influence on the compilation of national history, a duty which was formed during the reign of Emperor Temmu and developed further during the reign of Empress Genmei. The Kojiki and Nihonshiki were compiled during the 8th century and contain Japanese myths in the form of tales from the Age of the Gods, as well as stories of Emperor Jimmu and how he established the country. The compilations were the basis of the imperial family's claim as the rightful rulers. Efforts were made to link ancient rituals to the kami believed to be the progenitor of the imperial family, such as by assuming the kami of Munakata Taisha (the Three Female Deities of Munakata) are the three goddesses birthed by Amaterasu, while the origins of the court ritual clans such as the Nakatomi clan, Inbe clan, and Sarume-no-kimi people were sought after in the world of myth.

### The Transformation of Ritsuryō and Heian Rituals

The Ritsuryō ritual system transformed during the Heian period (794–1185) as the Ritsuryō system was relaxed.
In 798, it became impossible to maintain the heibu system of distributing religious offerings to all shrines in the country, resulting in the shrines being divided into two types: the kanpeisha (官幣社) which continued to receive their religious offerings from the Department of Divinities, and kokuheisha (国幣社) which received began to receive theirs from their provincial government. Shrines were further divided in greater and lesser shrines, as well as some shrines with particularly powerful miraculous powers classified as myōjin taisha (名神大社). These classifications were outlined in the Engishiki Jinmyōchō of 927.
As the imperial court expanded along with the relaxation of the Ritsuryō system, the emperor and their close advisors became directly involved in regular rituals of shrines that had particularly strong connections to the imperial court, rather than the Department of Divinities overseeing this duty, which led to the development of kōsai (公祭, lit. "public festival"), officially recognized and officiated rituals, during the late Nara and early Heian periods. During the reign of Empress Kōken, Empress Kōmyō and others began changing the regular rituals of the many kasuga jinja (春日神社), shrines housing the patron kami of the Fujiwara clan, into kōsai rituals. Special rituals also became more common as the emperor's authority grew. These were rituals for specific kami, and in addition to the regular rituals, in which the emperor themself dispatched the imperial representative. The first example of this was the Kamo Rinjisai (賀茂臨時祭, lit. "Kamo special festival") held by Emperor Uda during his reign. The regular festival that developed after this retained the "special" name.
The emperor and their close advisors became directly involved with even more rituals such as the emperor's Maichōgai (毎朝御拝, lit. "every morning worship"), morning prayers sent to Ise Grand Shrine, conducted at a platform within the palace called the Ishibainodan (石灰壇) or the Ichidai-Ichido no Daijinbō-Shi (一代一度の大神宝使), a tradition which began in this period in which a court messenger takes sacred relics to specific shrines at an emperor's ascension. The practice of gyōkō (行幸) first occurred during Emperor Suzaku's reign. Gyōkō is the practice of the emperor themself going to a shrine and dispatching the ritual official from there, while up until that point, the emperor would have stayed in the imperial court and dispatched the officials from there.
At this time, the nobles became more interested in ujigami rituals, and we see several collections of traditions written during this time. There is the Kogo Shūi written by Inbe no Hironari which consisted of an orally transmitted history of the Inbe clan and also acted as a counter to the Nakatomi clan. There is also the Sendai Kuji Hongi which contains a collection of histories about the different clans thought to have been compiled by the Mononobe clan, as well as the Shinsen Shōjiroku containing the lineage and histories of the various clans which divided the clans into the branches of divine ancestry, imperial ancestry, foreign ancestry, and those of unknown ancestry.
The Engishiki, containing laws and customs, was completed in 927. Volumes one through ten contain laws regarding Shinto, and these ten volumes are collectively referred to as the Jingishiki (神祇式). The contents of each volume are as follows: One and two, seasonal rituals. Three, special rituals. Four, the Ise Grand Shrine. Five, position at the Ise Grand Shrine. Six, the role of saiin priestesses. Seven, Daijō-sai. Eight, norito. Nine and ten, the upper and lower kami.
In addition, as it was no longer possible to maintain the practice of sending religious offerings to all myōjin taisha shrines, it turned to a practice called kinen kokuhouhei (祈年穀奉幣) which involved making offerings only to the most prominent of these shrines twice a year. This practice expanded to sixteen shrines later, then eventually to Twenty-Two Shrines, and this continued until 1449 (the first year of the Hōtoku era) in the Late Middle Ages.
In regards to local rituals, provincial officials were dispatched and ranked the shrines in that province, developing the Ichinomiya system which ordered the shrines to be worshiped at. These officials noted the shrines that saw worship in a kokunai jinmyōchō (国内神名帳, lit. "domestic shrine register"), and, later, shrines of ninomiya rank or below were grouped together into a sōja shrine.

### Synthesis with and Separation from Buddhism

After the official introduction of Buddhism in the 6th century, Buddhism spread across Japan through the conflict between the Monobe clan and the Soga clan over the adoption of Buddhism. Early on in the adoption, however, Buddhism was not seen as different from Shinto and was taken up in the same way as local Shinto had been. Buddha was called Adashikuni-no-kami (蕃神, lit. "kami of barbarians"), and some women, such as Shima, Datto Shiba's daughter, left home to maintain Buddhist statues similar to what miko did. Later, in the 7th century, the kami were believed to reside in devaloka and thought to be seeking liberation just like humans. Jingū-ji were built within shrines as locations where Buddhist practices could occur such as reading Buddhist scriptures before the kami. An early example of this is the jingū-ji at Tado Shrine founded by the monk Mangan. Buddhist temples also made attempts to move Shinto closer to Buddhism which resulted in the belief that kami were also Defenders of the Justice, beings who protect dharma, and so jinjū-sha shrines were built into Buddhist temples.
Several faiths appeared during the Heian period which contained elements of both Shinto and Buddhism such as belief in Goryō and the Kumano faith which regards Kumano a Pure land, and the influence of Buddhism led to the creation of statues of kami inspired by Buddhist statues. Shinto-Buddhims syncretism continued as time went on, giving rise to the honji suijaku theory which claims kami are the temporary forms of Buddhist deities manifested in Japan to save the people. There were also instances of using Buddhist deity terms such as bosatsu (菩薩, bodhisattva) and gongen when referring to kami, as well as the practice of carving buddhist images, the true forms of the deities, on the backs of mirrors, believed to be the house of the kami. These mirrors were called mishōtai (御正体, lit. "honorable true form") because they depicted the kami's true form.
At the same time, the desire to separate Shinto and Buddhism was seen in the imperial court and among the shrines. Regulations such as the Jōgangishiki (貞観儀式) and the Gishiki (儀式) forbade central officials and officials from the Five Provinces from conducting Buddhist services during the period of the Daijō-sai. Buddhist monks and nuns were also forbidden from attending medium rituals or minor rituals that occurred during purification of the imperial palace, and Buddhist services could not be held in the palace. From the middle of the Heian period onwards, the emperor was also required to stop any Buddhist activities during the period of purification for rituals in which the emperor conducts the purification themself, such as for the Niiname-no-Matsuri, Tsukinami-no-Matsuri, and the Kannamesai Festival, and other government officials were also meant to avoid Buddhist practices during this time. At the Ise Grand Shrine, some words were considered taboo. For Buddha (仏, hotoke) they used nakago (中子, lit. "center") and for Buddhist priest (僧侶, sōryo) they used kaminaga (髪長, lit. "long hair"). These indirect terms were even used at the saiō priestess's residence. While Shinto and Buddhism had begun to blend as a faith, ritualistically, they remained two separate systems.

### Development of Shugendō and Onmyōdō

In ancient Japan, mountains were believed to be other worlds, such as the afterlife, and were rarely entered, but they became areas for ascetic practices during the Nara period under the influence of various factors such as esoteric Buddhism, Onmyōdō, and kami worship. One figure in the early stages of this practice was En no Ozunu, and Shugendō was formed as these ascetic mountain practices developed into an organization near the end of the Heian period, with Kinpu Mountain, Kumano Sanzan, the Three Mountains of Dewa, and Mount Togakushi prominent examples of mountains of power. This was followed by the establishment of various Shugendō schools such as the Honzanha (本山派) of the Tendai school, the Tōzanha (当山派) of the Shingon school, the Haguroha (羽黒派) based at the Three Mountains of Dewa, and the Hikosanha (英彦山派) based at Mount Hiko.
Onmyōdō was established during the Heian period by the imperial court. It developed independently in Japan based on influences from the philosophies of yin and yang and wuxing which came over from China. Onmyōdō's development also had an impact on Shinto, as some rituals such as the Oharae-shiki and Michiae-no-Matsuri (道饗祭) which had been conducted by the Department of Divinities were later conducted by the Onmyōryō (陰陽寮), the department of Onmyōdō. Additionally, the ritual text for the Oharae-shiki, also known as the Nakatomi Harae (中臣祓), changed into the Nakatomi Saimon (中臣祭文, lit. "Nakatomi ritual text") and became used by Onmyōdō priests. The change was that the original ritual incantation was in the senmyōtai (宣命体) style, in which the words are directed to the ritual's attendees, while the newer incantation was in the sōjōtai (奏上体) style, in which the words are directed to the kami. However, while Shinto rituals were affairs of the state, Onmyōdō rituals were conducted in an environment of heightened materialistic desires of the aristocrats to request personal success and the curing of illness. Beginning in the 10th century, the department overseeing Onmyōdō was almost entirely led by successive generations of the Abe and Kamo clans.

## Middle Ages
### The Shogunate's Shinto System

The shrine system went under a reorganization under the shogunate with the establishment of the Kamakura shogunate. Minamoto no Yoritomo, the founder of the shogunate, was a devout follower of Shinto and officially acknowledged the Ise Grand Shrine's claim over its territory. Other particularly venerated shrines were the Izusan Shrine, Hakone Shrine, and Mishima Shrine, and it became custom for future Shoguns to visit Izu Hakone in January every year a practice called Nisho Gongen (二所権現) which may have been the origin of modern-day Hatsumōde. The Magistrate of Temples and Shrines was established in 1194. The Kamakura shogunate carried on the piety of Minamoto no Yoritomo, as seen in Article 1 of the Goseibai Shikimoku enacted in 1232 which called for the reformation of shrines which should focus solely on carrying out rituals. Additionally, the Kantō Shinsei (関東新制), a legal code released by the shogunate as opposed to the emperor, contained several regulations surrounding religion such as those relating to development of Shinto institutions and the prevention of the misconduct of Shinto priests. Government positions such as the kitō bugyō (祈祷奉行) and shinji bugyō (神事奉行) were established which oversaw religious events rather than the administration of shrines. The Senjū clan began to inherit the kitō bugyō position during the Muromachi period.
The jisha-densō (寺社伝奏) position had been established within the imperial court and was responsible for conveying requests from the shrines to the emperor. However, once the shogunate came into power, this shifted to reporting to the shogun then communicating the shogun's decisions back to the shrines. The retired emperor also conducted more frequent pilgrimages to Kumano Taisha during this period, and the imperial court began to focus more on Shinto rituals as its authority declined as the shogunate rose. Emperor Juntoku wrote in the Kinpishō (禁秘抄), "Shinto matters first, all other matters after."

### The People's Faith in the Middle Ages

The faith of the common people also changed during the Middle Ages. During ancient times, the people's faith centered on rituals worshipping local ujigami to pray for the prosperity of their community. In the Middle Ages, however, kami with mystical power were divided in a process called bunrei and taken to other regions, leading to an increase in shrines called kanjōgata-jinja (勧請型神社) housing these divided kami where people prayed for individual prosperity.
Particularly widely worshipped were Kumano Gongen (熊野権現), Hachiman, Inari Ōkami, and Amaterasu. The region of Kumano was originally believed to be another world where the spirits of the dead went, but the syncretism with Buddhism led to the belief that Kumano was a manifestation of the Pure Land in the real world, with Kumano Gongen at Kumano Hongū Taisha believed to be Amitābha. Many people went on pilgrimages in groups to Kumano to pray to pass on to the next world in death as well as to receive prosperity in this world, so much so that they became known as the "ants' pilgrimage to Kumano" as they resembled a line of ants. Visits by the retired emperor became common during the Insei period as well. Hachiman was brought from Usa Jingū as a divided kami and protector of Emperor Seiwa by Iwashimizu Hachimangū, while also being worshiped as the guardian kami of the Seiwa Genji clan, while Minamoto no Yoshiie also established Tsurugaoka Hachimangū in Kamakura with the divided Hachiman. When Minamoto no Yoritomo established the Kamakura Shogunate, Gokeijin throughout Japan who followed the Kamakura Shogunate also prayed to Hachiman in their own territories, and the Hachiman faith spread throughout the country. Inari was originally the clan deity of the Hata clan, but in the Heian period (794–1185), Inari was revered as the guardian deity of Toji, and was combined with Dakini to spread throughout Japan as a deity of agriculture. In the Fushimi Inari-taisha, the first day of the first month of the lunar year, many common people would come to the shrine to pray. The first day of the first month of the lunar year is the time when the gods of the mountains descend to the villages to become the gods of the rice fields in the Tanokami faith.
Originally, it was forbidden for anyone but the emperor to make religious offerings or give prayers at the Ise Grand Shrine, but it and other shrines lost their financial foundation in the Middle Ages under the Ritsuryō system which led to religious officials from the shrine, mostly oshi (御師), actively gathering contributions and funds for building costs. They did this through proselytizing and conducting private prayers at manors across the country which spread the Ise faith first to lords and the warrior class, then to the common people. The earlier Kumano faith also contributed to the spread of the Ise faith as pilgrims on the Kumano Pilgrimage had to pass through Ise Grand Shrine along the Ise-Ji Route, resulting in many people beginning to worship the kami at Ise Grand Shrine. An account of the rebuilding of the outer shrines of Ise Grand Shrine in 1287 in the Kanchūki (勘仲記) from the Kamakura Period states, "The exact number of the thousands, tens of thousands of worshippers who attended is unknown," showing the large numbers of common people who traveled to the Ise Grand Shrine.
As worship at a main shrine increased, the kami of those main shrines were divided and brought to various villages. With the rise of the shōen manorial system as well, the kami of shrines of the manorial lords were divided and brought across Japan resulting in a third of all shrines of modern Japan being associated with one of the five faiths of Hachiman, Ise, Tenjin, Inari, or Kumano.
Festivals for the commonfolk also spread within urban areas. The people began to host the Gion Festival every year after 863 when the Imperial Court held an open goryōe (御霊会) at temple of Shinsenen in which the people of the city could participate. During the goryōe, the mikoshi was paraded around town from the ritual welcome of the kami at the beginning of the festival until the return to the shrine at the end which was thought to increase the spiritual power of the kami. The residents of Kyoto prepared the otabisho resting places for the mikoshi as well as prepared for and conducted the rites, meaning the Imperial Court had little involvement in the public aspects, resulting in a public festival with a strong local feel and identity. Other festivals established by the middle of the Heian period were the Kitano Goryōe, Matsuo Festival, Imamiya Festival, and Inari Festival.
Furthermore, as the villages of the manors became more autonomous and as the self-governing communal sō (惣) villages were established, administrative village organizations overseeing faith activities called miyaza (宮座) gained attention as organizers of festivals. The miyaza were led by elders known as otona (オトナ, lit. "adult") or toshiyori (年寄, lit. "elder") while younger members were responsible for conducting the rituals. Shrines became a spiritual center for the villagers as they recited oaths to the kami there when the village made decisions, as well as conducted vow ceremonies (一味神水, ichimijinsui) when forming a group such as an ikki (一揆). The villagers would visit the shrine even during their daily lives as farmers, and the head of the shrine was selected for a year-long term from among the villagers.

### Development of Shinto Theory and the Honji Suijaku Theory

A movement spread through the intellectual class to develop a doctrine for and incorporate the religion of Shinto into their ideals. The first attempt was the Ryōbu Shintō (両部神道) Theory developed around the mid-Heian period by esoteric Buddhist monks using esoteric terminology. An early example of this is seen in Shingon Fuhō San'yō-shō (真言付法纂要抄, Collected Essentials on Shingon Dharma) written by Shingon Buddhist monk Seison in the 11th century in which he depicts Amaterasu as the same being as Vairocana and argues Japan is well suited to the spread of esoteric Buddhism. The most important Shinto theories of the Middle Ages were derived from this theory.
Following this, Buddhist monks began to frequent the Ise Great Shrine, including Chōgen in 1186, with many Ryōbu Shintō texts written in monk residences located within the Ise Great Shrine's territory. The Mitsuno-gashiwa Denki (三角柏伝記) and the Nakatomi no Harae Kunge (中臣祓訓解) are believed to be early examples of such texts. These texts place the shrine's Inner Shrine as the Womb Realm and the Outer Shrine as the Diamond Realm of esoteric Buddhism, and both together are seen as a manifestation in this world of a mandala. Additionally, Amaterasu is said to be Brahmā as Surya, while Toyouke-hime is said to be Brahmā as Chandra. The Reikiki (麗気記) was compiled afterwards as a collection of secret theories based in Shingon Buddhism and became a representative text of Ryōbu Shintō.
As Shinto manuscripts and writings were developed at temples, Ryōbu Shintō-style schools were established to pass down the writings, along with the establishment of several other factions including Sanbōin-ryū (三宝院流) founded by Imperial Prince-Monk Shukaku Hosshinō and Miwa-ryū (三輪流) which developed at Byōdō-ji Temple near Mount Miwa. These Ryōbu Shintō schools passed down their secrets while conducting abhisheka and initiations in a similar way to esoteric Buddhism in a practice known as Shinto Abhesheka (神道灌頂, Shintō kanjō).
Shinto theories developed not only from Shingon Buddhism, but also from ideals based on Buddhist-Shinto syncretism from the view of Tiantai Buddhism. The foundation of this was an explanation of the significance of the kami of Hiyoshi Taisha, the guardian kami of Mount Hiei, through the lens of Tendai Buddhist thought. This was called Sannō Shintō.
The Yōtenki (耀天記) was written in the 13th century, and it was said the Buddha manifested as Ōnamuchi of the main shrine, Nishi Hongū, of Hiyoshi Taisha to save the people of Japan, a small country in the Degenerate Age of Dharma. Additionally, the monk Gigen (義源) wrote the Sange Yōryakki (山家要略記) in the 14th century in which he asserted not just Ōnamuchi but all kami of Hiyoshi Taisha were manifestations of buddhas. Afterwards, Gigen's disciple, Kōshō (光宗), wrote the Keiran Shūyōshū (渓嵐拾葉集) in which he systemized the doctrine by linking all Tendai Buddhism to Hiyoshi Taisha kami. He also claimed the Hiyoshi Taisha kami innately resided within people's hearts. As the belief of original enlightenment spread, the idea that people are already enlightened regardless of their religious practices, these writings began to claim the kami, as beings more familiar to the Japanese people, were in fact the true form and buddhas were a manifestation of the kami in what was known as the inverted honji suijaku theory (反本地垂迹説, han-honji suijaku). Shinto theory in the Tendai school was primarily developed by a group of monks known as kike (記家, lit. "chroniclers").
Sansha Takusen (三社託宣) hanging scrolls began to appear in the late Kamakura period in Tōdai-ji or the ancient region of Nara. These were the words of the three kami Amaterasu, Hachiman, and Kasuga Daimyojin, expressing the tenets of honesty, purity, and mercy in kanbun style. These three kami in particular become the object of this worship because it was said they, Amaterasu, the ancestor deity of the imperial family, Hachiman, the patron deity of the samurai class (Seiwa Genji), and Kasuga Daimyojin, the patron deity of the noble class (the Fujiwara clan), entered into a divine pact with each other in the Age of the Gods, resulting in the belief that it was in the Age of the Gods that those three classes were bound to work in coordination as they rule.
As Buddhist-Shinto syncretism spread during the Middle Ages, various shrines began to create engi (縁起), writings and illustrations of religious histories, particularly of the religious institutions themselves. Prominent examples include the Kasuga Gongen Genki-e (春日権現験記絵), the Kita no Tenjin Engi (北野天神縁起), and the Hachiman Gudōkun (八幡愚童訓), as well as the Shintōshū (神道集), a collection of such texts created in the 14th century. It is believed these texts and illustrations were created by the religious institutions to receive reliable patronage from the samurai class as the Imperial Court declined at the outset of the Middle Ages. This period also saw the spread of Middle Ages Mythology, a body of Shinto myths reinterpreted through a lens of Buddhist-Shinto syncretism.
The Honji Suijaku theory was incorporated into Shin Buddhism which rapidly grew during the Kamakura period. One Buddhist monk of the school, Zonkaku, authored the Shoshin Honkaishū (諸神本懐集) in which he divided Japan's shrines into gonsha (権社), shrines which housed a manifestation of a buddha, and jissha (実社), shrines which did not, and argued that only the kami of gonsha should be worshipped. Even in the Nichiren school of Buddhism, the monk Nichiren himself actively incorporated Shinto into the school, which his disciple Nichizō systemized into Hokke Shinto. Their belief was that if the true dharma as based on the Lotus Sutra was correctly conducted, then the Thirty Guardian Deities (三十番神, Sanjū Banshin) with Atsuta no Ōkami at their head would protect Japan, each one protecting for a day in a rotation. Other schools to take up the Honji Suijaku theory with varying approaches were the Jishū school, the Rinzai school, and the Sōtō school.

### Japan as a Divine Land and the Inverted Honji Suijaku Theory

As that was occurring within the Buddhist faith, Shinto institutions were also receiving influence from external religions such as Buddhism while movements to create doctrine for and internalize Shinto grew more actively. Inverted honji suijaku theories which placed the kami above buddhas also developed in opposition to the honji suijaku theory. The collapse of the Ritsuryō system produced a sense of crisis among the Shinto authorities as the foundation that supported their existence was shaken. Shinto authorities began creating writings for Shinto rituals in an attempt to gain religious authority and claim Shinto's place in resistance to Buddhism as Buddhist authorities were actively closing in on the world of the kami and attempting to reinterpret Shinto using Buddhist theories. Also in the background during the creation of systemized Shinto theory was Japan's victory in the Mongol invasions of Japan which resulted in a belief of Japan as a divine land protected by the kami, a belief which strengthened during this period along with the authority of the Ise Shrine through the increase throughout Japan of jingu mikuriya (神宮御厨), territories belonging to the shrine originally for the production of offerings to the kami.
The first school to do this was Ise Shinto, established in the mid-Kamakura period. Ise Shinto is a school of Shinto established primarily by the Watarai clan who were priests of the Outer Shrine with the Shintō Gobusho (神道五部書, Five Shinto Scriptures) as central texts. Of the five Scriptures, the Yamatohime-no-Mikoto Seiki (倭姫命世記, Chronicle of Yamatohime-no-mikoto) and Zō Ise Nisho Daijingū Hhōki Hongi (造伊勢二所太神宮宝基本記) were created relatively early. They referenced the Womb World-Diamond World theory of Ryōbu Shintō as they placed the Inner and Outer Shrines on the same level, continuing on with plans to place the Outer Shrine in a superior position. These writings identified the kami of the Outer Shrine, Toyouke-hime, to be Ame-no-Minakanushi, one of the original kami, to increase her standing compared to Amaterasu, as well as defined the Inner Shrine as the Wuxing agent of Fire and the Outer Shrine as the agent of Water in an attempt to raise the Outer Shrine's standing as Water regulates Fire. The kami Takuhadachiji-hime, mother of Ninigi-no-Mikoto, was also placed as a grandchild of Toyouke-hime, inserting Toyouke-hime into the imperial ancestral line. Other movements in addition to these kami theories included an emphasis on Japan as a divine land through preaching the eternal nature of the imperial line, the dignity of the Three Sacred Treasures, and the honor of the shrines, a spread of reason and morality based on the Two Great Virtues of Shinto, honesty and purity, and a focus on the diligent practice of, cleansing prior to, and purification through Shinto rituals.
Ise Shinto further developed as a result of what is known as the imperial character controversy (皇字論争) which revolved around the addition of the character meaning "divine" or "imperial" (皇) was added to the Outer Shrine's name in 1296. Center of the Outer Shrine at the time Yukitada Watarai referenced the first two of the Shintō Gobusho as evidence of the Outer Shrine's legitimacy, authored the further three of the five, Amaterashimasu Ise Nisho Kōtaijingū Gochinza Shidaiki (天照坐伊勢二所皇太神宮御鎮座次第記), Ise Nisho Kōutaijin Gochinza Denki (伊勢二所皇太神御鎮座伝記), and Toyōke Kōtaijin Gochinza Hongi (豊受皇太神御鎮座本記), then spread those writings of Ise Shinto throughout society.
Ieyuki Watarai followed Yukitada Watarai as center of the Outer Shrine and established Ise Shinto. In addition to penning the Ruijū Jingi Hongen (類聚神祇本源) and systemizing Ise Shinto while references various other writings from Neo-Confucianism, Taoism, and Buddhism, he also presented kizen-ron (機前論), a theory unique to Shinto doctrine. According to this theory, the chaotic state that existed prior to the world's formation was calledkizen (機前), that this kizen was the source of consciousness, as well as the essence of the kami. He further preached maintaining purity was how one uses kizen.
Later, Tsuneyoshi Watarai claimed the Inner and Outer Shrines were of equal standing as the Watarai Clan served the Inner Shrine before the Outer Shrine was established and that the view of Toyouke-hime as a kami of Water allowed a comparison of the two kami to the Sun and the Moon. Just as the Sun and the Moon together light the heavens, so do Amaterasu and Toyouke-hime stand together.
At the opening of the Nanboku-chō period, Kitabatake Chikafusa wrote the Jinnō Shōtōki (神皇正統記, "Chronicles of the Authentic Lineages of the Divine Emperors") and the Gengenshū (元元集) while influenced by Ise Shinto in which he noted the imperial line remained unbroken since the Age of Gods and argued Japan was superior due to being a divine land. He also argued the emperor is required to have Confucian virtues and must not abandon the various teachings of religion. It was also during this period that Tendai monk Jihen also received influence from Ise Shinto and wrote Kuji Hongi Genki (旧事本紀玄義) in which he presented a depiction of the emperor as sovereign and established political discourse within Shinto. Court noble Ichijō Kaneyoshi wrote the Nihon Shoki Sanso (日本書紀纂疏) in which he conducts a philosophical analysis of the scrolls on the Age of Gods of the Nihon Shoki, forming Shinto thought. Inobe-no-Masamichi wrote the Jindai Kankuketsu (神代巻口訣) which discussed Shinto theology through commentary of those same scrolls.

### Formation of Yoshida Shinto

The destruction of Kyoto during the Ōnin War in the Ōnin period affected many temples and shrines and resulted in the cessation of rituals, including the Daijōsai and crowning ceremonies. One Shinto priest most affected by the turmoil was Yoshida Kanemoto. Kanemoto had served at the Yoshida Shrine which was lost in the fires of war, along with tens of lives of the residents living in the area around the shrine. In his turmoil, he fled into the wilds. However, the loss of many ancient texts in the war became an opportunity for new Shinto doctrine to develop in the form of Yoshida Shinto.
The Yoshida family's original name was Urabe, of the Urabe Clan. As Shinto priests, they specialized in tortoise-shell divination and long inherited the position of Senior Assistant Director of Divinities (神祇大副, Jingi Taifu), the second-highest position in the Department of Divinities. In the Middle Ages, Urabe no Kanekata was an expert of research into Japanese texts, as seen in the Shaku Nihongi (釈日本紀) he authored, earning the Yoshida family the monicker of "House of Japanese Chronicles".
Kanemoto went on to write the Shintō Taii (神道大意) and the Yuiitsu Shintō Myōhō Yōshū (唯一神道名法要集) in which he compiled Shinto thought from the Middle Ages while incorporating discourse from several other religions to present a new Shinto theory in the form of Yoshida Shinto. In his writings, Kanemoto divided Shinto into three varieties: Honjaku-engi Shintō (本迹縁起神道) (the histories passed down by shrines), Ryōbu-shūgō Shintō (両部習合神道), and Gempon-sōgen Shintō (元本宗源神道). He further claimed the Gempon-sōgen Shintō passed down by his own family was the only true Shinto transmitted since the very origin of the country. He also placed the kami as the peak of all things, and Shinto as the origin of all things. In regard to the relationship between Shinto, Confucianism, and Buddhism, he strongly purported a root-leaf-fruit theory which claimed Shinto was the roots, Confucianism was the leaves that grew in China, and Buddhism was the fruit which blossomed in India. This argued that while the three religions were one, Shinto was the true religion.
Additionally, he claimed Shinto had three aspects: the body, its true essence, the appearance, how it manifests, and the purpose, how it affects the world. These three aspects govern the sun and the moon, the warmth and the cold, nature, and all other phenomena. Ultimately, his Shinto theory was a type of pantheism in that he claimed the kami resided within all things in existence, permeating the entire universe. In addition to his theories of Shinto, Kanemoto developed many rituals. He began by building the Daigengū Saijōsho (大元宮斎場所) at Yoshida Shrine. This enshrined the kami of Ise Shrine, the Hasshinden, and the more than 3,000 kami of the Engishiki shrines. He then declared the Daigengū to be the root of all religion in Japan from the time of its founding, as well as the main shrine for all shrines throughout the country. Furthermore, with influence from esoteric Buddhism, he created three rituals known collectively as the Three Dais Rituals (三壇行事, San Dan Gyōji). These included the Eighteen Shinto Rituals (十八神道行事, Jūhachi Shintō Gyōji), the Sōgen Shinto Ritual (宗源神道行事, Sōgen Shintō Gyōji), and a homa ritual which consisted of lighting a fire in the octagonal dais in the center of the hearth then praying as grains and rice porridge were cast into the fire.
These Shinto theories were purported to have been developed based on a collection of three writings known as the Three Sacred Scriptures (三部の神経) which include Tengen Shinpen Shinmyō-kei (天元神変神妙経), Jimoto Jintsū Shinmyō-kei (地元神通神妙経), and Jingen Jinryoku Shinmyō-kei (人元神力神妙経). These scriptures are said to contain the teachings of Ame-no-Koyane, however, they are considered fictitious as there is no evidence they were ever created. Kanemoto himself fabricated writings resembling these scriptures under the names of other authors, such as Fujiwara no Kamatari. He also fabricated the history of the Daigengū Saijōsho.
Yoshida Shinto also established the ceremony for Shinto funerals in which people are worshipped as kami. There had been little engagement with funerals prior to this as Shinto viewed death as impure, and it was only when appeasing vengeful spirits through worship such as in the case of goryō or Tenjin that people could be considered kami. Yoshida Shinto, however, held a belief in a close relationship between people and kami and thus actively conducted funerals. In fact, the Kamitatsu Shrine (神龍社) was constructed above Kanemoto's remains and became a shrine housing him as a kami.
Yoshida Shinto became an emerging force, with its rise perhaps contributed to by the societal unrest caused by the warring of the period. The sect spread widely, particularly among the upper class with Hino Tomiko's patronage of the Daigengū upon its construction as well as an imperial sanction in 1473, allowing it to become central to the Shinto sphere in the modern era. However, it also received strong resistance, such as from the priests of both the Inner and Outer Shrines of Ise Shrine.
Yoshida Shinto is the first Shinto theory to have its own doctrines, scriptures, and rituals independent of Buddhism while amalgamating Shinto from the Middle Ages and reaching across religious lines to incorporate discourse from various religions. Several scholars consider the establishment of Yoshida Shinto a turning point in the religion's history, such as Shinto scholar Shōji Okada who called it a transitional period for Shinto, and historian Toshio Kuroda who claims the creation of Yoshida Shinto was the creation of Shinto itself.
Having established Shinto funerals, Yoshida Shinto went on in the Sengoku period to become involved with the founding of shrines which worshipped the daimyo of the time as kami, including the founding of the Toyokuni Shrine in Kyoto, in which Toyotomi Hideyoshi was enshrined as a kami. Additionally, Bonshun of the Yoshida family recited Shinto prayers for Tokugawa Ieyasu and conducted Ieyasu's Shinto funeral upon his death in accordance with his will.

## Early modern times
### The Shogunate's Restoration of the Shinto System and Imperial Rites

The administration of shrines was restructured once the Edo period began after the end of the wartime of the Sengoku period. The Shogunate officially recognized the territory controlled at the time by each shrine and granted them the right to refuse entry to shugo and their officials. Those regions that received this directly from the Shogun were referred to as red-seal lands (朱印地, shuin-chi) while those who received it from the regional lord were called black-seal lands (黒印状, kokuin-chi). However, being acknowledged in this way meant the shrine's right to profit and to own land was given to the Shogunate. The Shogunate also established the Jisha Bugyō (寺社奉行, lit. "temple and shrine commissioner") position which was placed at the top of the three Tokugawa bugyō positions under Rōjū authority (the other two bugyō it was above being the Machi Bugyō and Kanjō bugyō). The Shintō-kata (神道方) position was also established as an advisory role to the Jisha Bugyō who they reported to. They were responsible for researching ancient Shinto practices and ceremony documents. This position became hereditary within the Yoshikawa family following Yoshikawa Kikkawa's service in the position. Special bugyō positions were also assigned to select shrines such as the Yamada Bugyō (山田奉行) which oversaw Ise Shrine and the Nikkō Bugyō (日光奉行) which oversaw Nikkō Tōshō-gū.
In 1665, the Shogunate enacted the Regulations Governing Shintō Shrines, Senior Priests and Other Shrine Functionaries (諸社禰宜神主法度, Shosha negi kannushi hatto) which gave the Yoshida family almost complete control over all clergy members including requiring general clergy members without a court rank to receive a Shintō Sai Kyojō (神道裁許状, lit. "Shinto Function Certificate") from the Yoshida family before wearing kiriginu (狩衣) or ikan (衣冠). However, shrines which received court status previously from the Imperial Court such as Ise Shrine, the Kamo shrines, Kasuga-taisha, Usa Jingū, Izumo-taisha, and Fushimi Inari-taisha were allowed to operate through the Shaji Tensō (寺社伝奏, lit. "Imperial Liaison for Temples and Shrines") as they had in the past rather than through the Yoshida family. This law also instated a punishment for neglect of duties for those in the clergy, prohibited the buying and selling of shrine territory, and stipulated a duty to maintain the shrines.
With the creation of the Shūmon Ninbetsuaratame-chō (宗門人別改帳, lit. "Denomination Census Ledger"), the Shogunate required all funerals to be held at the family's registered temple in what was known as the danka system (檀家制度, danka seido), essentially requiring all common people to have Buddhist funerals. Some people, such as the Yoshida family and family of hereditary priest lines at influential temples, were allowed Shinto funerals with approval of the Jisha Bugyō. This restriction was relaxed in the mid-Edo period as the anti-danka movement developed, allowing those who had agreed with their registered temple to receive a Shintō-sai Kyojō (神道裁許状, lit. "Shinto Rite Approval Certificate") and have a Shinto funeral. When this happened, the shrine rather than the temple confirmed the person was not Christian and issued what was called a Shinto certificate (神道請, Shintō-uke) rather than a temple certificate (寺請, tera-uke) of affiliation.
The Shogunate also provided financial support for the partial revival of imperial rites which had been suspended during the warring period. The Daijōsai—which had been suspended for 222 years ever since the ascension of Emperor Go-Tsuchimikado—was revived for Emperor Higashiyama and then made permanent at the ascension of Emperor Sakuramachi. The Niinamesai was also revived in 1688, the year following the year the Daijōsai was restored. The practice of sending heihaku ritual offerings from the emperor to select shrines also restarted during this time with heihaku delivered to the Upper Seven Shrines, Usa Jingū, Kashii-gū in 1744. Reihei (例幣) offerings which were sent from the imperial court for the Kannamesai were also reinstated in 1647 by order of Emperor Go-Kōmyō. Ise Shrine's ritual rebuilding process called the Shikinen Sengū had also been discontinued but was also revived during the Azuchi–Momoyama period through the combined efforts of Buddhist nuns Seijun and Shūyō of Keikō-in Temple. While the Department of Divinities, which was burned in the warring period, was not restored, the Hasshinden in the Saijōsho of Yoshida Shrine did take its place.
The Shogunate also instated regulations in regards to Shugendō with the enactment of the Regulations Governing Shugendō (修験道法度, Shugendō Happa) in 1613 forbidding any not affiliated with either the Tōzan Sect or the Honzan Sect from mountain ascetic practices. This caused Shugendō practitioners to split into two groups: those who resided in the mountains, and those who resided in settlements practicing what was called sato-shugen (里修験, lit. "village shugen"). It was these latter Shugendō practitioners who filled a role of guiding the common people in their folk beliefs, such as in the practice of Kōshin.

### Popular beliefs in the early modern era

After the early modern period, with the restoration of public safety and the improvement of transportation conditions, such as the construction of Kaido roads and the formation of Shukuba-machi, the belief in Shinto became more widespread among the general population. People formed associations called "kou" in various places, and each member of the association would accumulate a small amount of money every year, and with the joint investment, a representative chosen by lot would make a pilgrimage to a shrine and receive a bill for all the members of the association. Hongū Sengen Taisha, Kotohira-gū, Inari, and Akiba-kō, which were widely distributed throughout Japan. Each group formed a relationship with a master or a predecessor, and the master arranged for the members of the group to stay overnight when praying or visiting the temple.
In particular, the belief in Ise Shrine spread explosively during the Edo period. When people visited the shrine, they were welcomed at their own residences, where they performed Kagura (Shinto music and dance) and were treated to sake, Ise delicacies, and quilts. He also took them on a tour of the two palaces and places of interest, making them long to visit Ise. As a result, the common people's belief in Ise has increased, and millions of common people have visited Ise Jingu all at once. It has exceeded 90%.
As the general public became more active in visiting shrines, many guides were published. These included Edo meisho zue by Gekisen Saito, Namiki Gohei's Edo shinbutsu ganken juhouki, and Okayama Tori's Edo meisho e kagarenki, which catalogued and introduced temples and shrines throughout Japan. In addition, Jippensha Ikku's Tōkaidōchū Hizakurige, which depicts the unusual journey of a pilgrim to Ise, and Comic books called "Hizakurige monogatari," which were written in response to this hit, and other literature on the theme of pilgrimages to shrines and temples were also published in the early modern period, contributing to the spread of Shinto faith among the general public.
On the other hand, with the secularization of visits to shrines and the increase in the number of visitors, there were not a few cases where entertainment facilities such as Yūkaku, private prostitutes, theaters, and Imitation began to line up around shrines and in their precincts.
In addition to the increase in the number of shrine visitors, urban commoners' festivals also became more active as a large number of spectators other than Ujiko and worshippers began to participate. In Edo, the Sanno Matsuri of Hie Shrine, the Nezu Matsuri of Nezu Shrine, and the Kanda Matsuri of Kanda Shrine, also known as the Three Great Festivals of Edo, developed, with the procession of tasteful market stalls and floats, and a costume parade of the Korean envoys and feudal lords, which attracted many spectators. Outside of Edo, many urban festivals were revitalized, such as Gion Matsuri and Imamiya Matsuri in Kyoto, Tenjin Matsuri in Osaka, Hiyoshi Sanno Matsuri in Shiga, Chichibu Yatsuri in Saitama, and Takayama Matsuri in Gifu. Some of these festivals have been handed down since before the early modern period, but many of them were newly restarted after the restoration of public order in the early modern period.
In the former case, the lord would assign the townspeople to do town work, such as building roads and breeding horses, and would have them participate in the festival by pulling things. In the latter case, a headman was selected from each town, and the headman shared the expenses, or the expenses were shared from the expenses of the town that provided the headman. Although the lords issued thrift ordinances and other regulations for festivals, they generally allowed freedom.
As mentioned above, the spread of Shinto beliefs to the common people during the Edo period gave rise to a large number of lecturers who taught Shinto to the common people in an interactive manner. Zanchi Masuho, a priest of the Asahi Shinmei Shrine, was one of them. He gave oral talks on the streets with a clever joking tone, and instead of the academic Shinto that sought its basis in the Shinto scriptures, he quoted freely from the legends of Shinto, Confucianism, Buddhism, and the three religions, and attributed Shinto to matters of the heart and practice. In this way, he preached common morals such as harmony between husband and wife and equality between men and women, and he also preached the essence of Shinto, which was to work hard in accordance with one's status, to meet the demands of common people living in a status society.
These Shinto scholars' efforts to educate the people influenced the emergence of popular Shintoists in later periods. Shoshitsu Inoue, a priest of the Shinto shrine in Umeda, started the Misogi Doctrine and gained many followers by teaching the art of "shofar," the law of eternal life, and chanting "three kinds of exorcism" to entrust the safety of one's body to the Shinto light, but the shogunate suspected him and sent him to Miyakejima. Kurozumi Munetada, a priest of Imamura Shrine, also founded Kurozumikyo, which taught that everyone was one with Amaterasu without discrimination of status, and spread to a wide range of people.
Ishida Baigan, the founder of Shingaku, the largest school of popular education in the early modern period, was also influenced by Shinto scholars in his youth. He emphasized the concept of "honesty", a virtue of medieval Shinto, and harmonized the teachings of Shinto, Confucianism, and Buddhism to teach ideas for the people and merchants.
In the late Edo period, Ninomiya Sontoku also spread the idea of virtue, based on the principles of sincerity, hard work, decentralization, and compromise, to the people as the "great way of the dawn of creation" and the "great way of Shinto" since Amaterasu opened the reeds field and made it the Land of Mizuho. He harmonized the three religions of Shinto, Confucianism, and Buddhism with Shinto at the center, likening his learning to "a grain of Shinto, a grain of Confucianism, and a grain of Buddha.

### The establishment of Confucian Shinto

During the Edo period, while Buddhism took its place as the state religion under the Terashi system, ideologically it stagnated as a whole.In the world of thought, it was effective as an ideology to support the Shogunate system. In the world of thought, Confucianism, especially Cheng-Zhu school, which was effective as an ideology to support the shogunate system and preached human ethics compatible with the secularism of the Edo period, flourished very much, while Buddhism was criticized by Confucians for its worldliness that was incompatible with secular ethics. Buddhism was criticized by Confucians for its worldly ethics.
The mainstream theories of Shinto also shifted from Shinto and Buddhism to Confucian Shinto, which was more closely linked to Confucianism. Although there were theories of Shinto advocated by the Yangmingism school, such as Nakae Tōju's Taikyō Shinto, most of the theories of Shinto were formed by Shūji. Although Confucian thought was also incorporated in the idea of Shinto, Confucian Shinto differs in that it explicitly criticized Buddhism and attempted to escape its influence. On the other hand, the logical structure of the Confucian Shinto inherited a strong medieval esoteric tradition, and the Buddhist theory of Shinto-Buddhist syncretism was replaced by the Shuko theory, which can be said to be in a transitional period between the medieval and early modern periods.
The pioneer of Confucian Shinto was Hayashi Razan. In addition to spreading his knowledge of Zhu Xi to Japan, Razan also studied Shinto, and wrote such works as "Shinto Denju" and "Honcho Jinja Ko", forming his own theory of Shinto called Rituji Shinto. The idea was that the Confucian god Li was the same as the Shinto god, and that the ultimate god was Kuni-Tokotachi. While advocating Shinto and anti-Buddhism, claiming that Japan was pure and superior before the introduction of Buddhism, he also claimed that Emperor Jimmu was a descendant of Taihaku based on Chinese thought, and that the Imperial Regalia of Japan, claiming that the Three Sacred Treasures represented the three virtues of Confucianism, and tried to appeal to the high level of Japanese civilization by claiming that Japan has belonged to the Chinese sphere since ancient times. In addition, the essence of Shinto is a political doctrine that has been handed down from Amaterasu to successive emperors, and rituals at ordinary shrines and festivals for common people were dismissed as "toshu-zuyaku Shinto" and mere "actors.
In the case of Yoshida Shinto, Yoshikawa Tadashi, a merchant, was initiated into the Yoshida family, and was granted the "Shinto Dotosho" by Hagiwara Kanetsugu, the head of the Yoshida family, and became the official successor. He formed Yoshikawa Shinto, which removed Buddhist discourse from Yoshida Shinto and incorporated more Confucian teachings. His philosophy was that Shinto is the source of all laws and that Kunitokotachi-no-Mikoto presides over the world, and that the world and human beings are created by "truth," which is the same as God. However, because the clarity and wisdom of the Divine Light is clouded by the contamination of the human mind, it is necessary to return to the original form through tsutsumi. And as a concrete way to do this, he taught that we should perform purification to purify the inside and outside, express our sincerity by performing ritual rites, and pray to the gods. In addition, the Confucian view of the Five Luns is that God has given man a mission, and that the relationship between sovereign and vassal is the most important.
In Ise Shinto, the late Ise Shinto, which excluded Buddhism and incorporated Confucianism, was formed in the Edo period by Nobuka Deguchi, a Shinto priest. The essence of Shinto, he wrote, is the way that Japanese people should naturally conduct themselves in their daily lives, the "way of daily use," which is to perform one's duties with honesty and purity of mind. He pointed out that it is a mistake to think that only the rituals at shrines, such as chanting congratulatory prayers and holding ball-shaped sticks, are Shinto. In addition, he criticized the use of Confucianism and Buddhism for the purpose of learning, arguing that although all religions are ultimately the same, and there are many points of agreement between Shinto and Confucianism, the systems and customs of each country differ, and therefore Japanese people should respect the laws and customs of Japan. However, he also stated that it is okay to study Confucianism and Buddhism as long as Shinto is placed at the center. He argued that prohibiting Buddhism and Confucianism because of their harmful effects and destroying current customs is against the natural order of things and is different from Shinto.
These Confucian theories of Shinto were compiled by Yamazaki Ansai. After making a name for himself as a Confucian scholar, he was taken in by Hoshina Masayuki, Lord of the Aizu Domain, where he came into contact with Masayuki's guest teacher, Yoshikawa Tadashi, and learned Yoshikawa Shinto, leading to the creation of his own Taruka Shinto. The idea was to combine Seven Generations of the Divine Age with the Neo-Confucianism of the Shuzi school, and to believe that Kunitokotachi-no-Mikoto was the Taiji, and that the five gods that arose after him were Five Elements, and that the last two, Izanagi and Izanami, combined the Five Elements to give birth to the land, gods, and people. The spirit of the god who created the people resides in each person, and the gods and people are in a state of union called "the only way of heaven and man. He said that Shinto means that people should live according to God, and that people should pray to God to obtain blessings, but that people must be "honest" in order to do so, and that "respect" is the first thing to realize this "honesty. The relationship between the sovereign and the vassal is not one of rivalry or power, but one of unity, and the sovereign and the vassal have protected the country through their mutual protection.、He also had a great influence on the later philosophy of the Emperor.
After the death of Yaksai Yamazaki, his pupil Shoshinmachi Kimimichi succeeded him, and the Taruka Shinto sect reached its zenith, spreading throughout the country, especially in Edo and Kyoto, widely spreading among nobles, warriors, and priests, and having the greatest influence on the Shinto world. After the death of Masamichi, his disciple, Masahide Tamaki, succeeded him and organized the single, double, triple, and quadruple mysteries based on the "Mochijusho" written by Masamichi, and worked on the organization of the Taruka Shinto. Some people, such as Gousai Wakabayashi, criticized this move to make the teachings secret, saying that it would obscure Yaksai's true intentions.
In addition to the Tachibana family Shinto mentioned above, the Hakka Shinto and Tsuchimikado Shinto were organized under the influence of the Taruka Shinto.
Yoshimi Yukikazu, who was one of Tamaki Masahide's pupils, wrote a book entitled "Goubu-shosetsu-ben" in which he criticized Ise Shinto and Yoshida Shinto by arguing that the Shinto Goubu-shosetsu was a fake book from the Middle Ages, and also criticized Taruka Shinto, which also used the Goubu-shosetsu as its scriptures. In fact, after Masahide Tamaki, Taraka Shinto began to stagnate ideologically and surrendered its mainstream position to Kokugaku.
In conjunction with these anti-Buddhist ideological trends, a movement to separate Shinto and Buddhism began to spread in some of the clans that had accepted Confucian Shinto. In the Mito Domain, Tokugawa Mitsukuni investigated the history of shrines with strong Shinto-Buddhist practices in 1696 (the 9th year of the Genroku), and organized them in such a way as to wipe out the Buddhist flavor. In addition, Masayuki Hoshina of the Aizu domain carried out a similar reorganization of temples and shrines. In addition, Ikeda Mitsumasa of the Okayama Domain promoted the return of priests from the Nichiren-shū Fuju-fuse and Tendai and Shingon sects, reducing the number of temples and encouraging Shinto funerals. In 1647, Matsue Domain, under the leadership of Matsue Domain lord Matsudaira Naomasa, Buddhist elements were removed from the Izumo-taisha

### Development of Kokugaku

In the mid-Edo period, Kokugaku began to flourish in place of Confucian Shinto. The origin of Kokugaku can be traced to poets such as Kinoshita Naganjako, Kise Miyuki, Toda Shigekazu, Shimokawabe Nagaryu, and Kitamura Kiigin, who composed poems that rejected the medieval norms of poetry in the early Edo period. Qi Oki worked hard on the study of the national scriptures while moving from temple to temple, and left behind such achievements as the empirical study of poetry and Study of Kana Spelling by writing such works as "Manyo Dai Shouki" and "Waza Shouransho", and established the method of empirical study of the classics rather than reading and interpreting them in the style of Confucian and Buddhist doctrines.
He was succeeded by Kada no Azumamaro. Harumitsu was born into the Higashi-Hagura family, who were priests to the Fushimi Inari Taisha shrine, and later moved to Edo to give lectures. Although there is no evidence that Harumitsu was directly apprenticed to Qi Oki, there are many books by Qi Oki in Harumitsu's collection, including "Manyo Dai Shouki", and his own commentaries on the Man'yoshu, such as "Man'yoshu Hokuanshou", mostly follow Qi Oki's readings.He was greatly influenced by Qi Oki. As can be seen in the Sogakusei, Shunman had the intention of organizing history, yushoku-nijitsu, and theology as a school under the name of wagaku, and in Shunman, Shinto and language studies (by Qi oki and others) were integrated as "Kokugaku".
Kamo no Mabuchi was born into a branch of the Kamo clan, who were priests at the Kamo Shrine, and studied under Kunitokazu Sugiura, a student of Harumitsu. After Harumitsu's death, Mabuchi's fame as a scholar of Japanese literature increased, and he was recommended by Kanda Zaisan [ja] to Tokugawa Munetake. Mabuchi also studied the Man'yōshū, and as part of this, he also studied the Norito, writing and annotating "Man'yōkō", "Kanjikō", and "Shūshūkō". In "Kokuyi-kou", he presented a diagrammatic methodology that extends from the study of ancient words to the study of ancient meanings and ancient ways.、Anti-Confucian ideology and respect for ancient Japan was given to Kokugaku. In contrast to Confucianism, which brought strife to the world by preaching humanity, the Japanese of the Kamidae period had an upright mind that converged on the "two kashikomi" of "God" and "the Emperor," and society was naturally harmonious without the need to preach humanity. However, the content of the ancient path is only fragmentarily described by Mafuchi in contrast to Confucian ethics.、He also taught that it was consistent with Laozhuang Thought, and did not go so far as to derive a system of thought directly from the classics to develop systematic theology.
After Mabuchi, Motoori Norinaga succeeded Mabuchi and became a great scholar of Japanese literature. He was born into a merchant family, and while studying medicine, he became interested in Japanese classics and waka poetry, and worked hard on his studies of Japanese literature while practicing medicine. 34 years old, he met Mabuchi for the first time in his life and became his teacher, and continued to study under him until Mabuchi's death. At the age of 34, he had the only meeting with Mabuchi in his life and became his teacher. He also developed the aspect of Shinto theology in Kokugaku. He also criticized the Confucian idea of Mandate of Heaven, in which "Heaven" always supports the saints to be Son of Heaven, as a way for those who have taken the country and become kings to justify themselves. On the other hand, Japan has not taught like Confucianism or Buddhism since ancient times, but even if there is no clever teaching, the grandson of Tensho Omikami will squeeze the country, and the world will be settled without being disturbed from top to bottom. He argued that there was a true way in Japan that he couldn't say one by one, saying that it had been transmitted, and that the reason was that there was never a change of dynasty in Japan, whereas in China where there should be Confucian teachings, what? He mentioned that the prince was murdered and the dynasty was replaced. He strongly criticized Buddhist and Confucian Shinto, which interpreted Shinto in accordance with Buddhist and Confucian doctrines.
He also criticized the science of Zhu Xi, which teaches that the world is created by yin and yang, and the spirit of reason, as an empty theory created by the sages based on their own speculation. He also criticized Lao Zhuang Thought, which describes heaven and earth as "the way that comes naturally.、He argued that all events in the heavens and the earth are governed by the Shinto gods, and that the evil that exists in the world governed by the gods is the work of the evil god Mazutsunichi. He took mythology as fact, and developed the theory of agnosticism, which states that attempting to interpret the workings of the heavens and the earth through logic, as in the theory of rikki, is a form of disrespect for the gods and is beyond the scope of human knowledge.
Fujiya Goketsu criticized Norinaga's theology on the grounds that the words of waka poems and myths should be understood as scriptures rather than facts, because they are different from everyday language, which is imbued with the spiritual power of Kotodama, and therefore seem to refer to one thing but refer to another He was also criticized for his theology by Moribe Tachibana and Harumi Murata.
From the time of Norinaga onward, each individual in the field of Kokugaku specialized in his or her own field of study. Nobutomo Ban, Motoori Ōhira, and Motoori Haruniwa inherited the linguistic and philological aspects of Norinaga. On the other hand, Hirata Atsutane, who became a disciple of Norinaga as a "posthumous student" of Norinaga, focused mainly on the aspects of the old ways and theology.

### Restoration Shinto and Late Mito Studies

In the late Edo period (1603–1868), society began to undergo major changes, such as the repeated attacks by foreign ships, and a new Shinto philosophy was born in the midst of these social conditions.
In the 18th century and prior to that, "Shinto had moved away from its roots as a cult of nature worship to become intertwined with Buddhism and Confucianism." In the 1730, Kada Azumamaro, Kamo Mabuchi, and their followers wanted to create a new Shinto that restored what they saw as traditional, indigenous Japanese practices and "ancient rites".
Hirata Atsutane, who met Honcho Motoi in a dream and called himself a "posthumous student," wrote major works such as "Shinbashira of the Spirit," "Koshiden," and "Honkyo Gaiben," and developed a new philosophy called "Restoration Shinto" while critically inheriting the theology of Motoori Norinaga. His philosophy emphasized the afterlife, declaring that "the first thing to solidify the Yamato spirit is to know the whereabouts of the spirit," and that the present world was "a temporary world in which Okuninushi keeps people alive to determine their good and evil. Atsutane believed that the universe is composed of three elements: heaven, earth, and Hades. He rejected the Shinto theory that "when a person dies, he goes to Hades," and claimed that when a person dies, his spirit goes to the "underworld" presided over by Okuninushi God in "earth," where he is judged by Okuninushi God for his deeds before his death. The Underworld is the world of the Emperor of Japan under the Sanka-Shinka, the presiding deity of the world, relative to the Kenmei-Kai, which is ruled by the Emperor of Japan, and is presided over by the Okuninushi. This theorized the ancient Japanese view of the spirit, and became the theoretical basis for the Shinto funeral ritual. He also argued that all national myths, ranging from Chinese mythology, Indian mythology, and even Christian mythology by Adam and Eve, are "accents" of Japanese mythology, representing the same facts in different words. It is believed that Christianity has greatly influenced him in terms of his presiding deity character and judgment after death. Although Atsutane severely criticized Buddhism in his "Deeding Laughing Words" and other works, he also criticized Confucianism in his "Gyokusuki" for "not knowing the ancient ways and only listening to Chinese theories," but he affirmed the ethics of Confucianism itself. In contrast to Norinaga, who mainly criticized Confucianism in his theory of ancient ways, Atsutane's main enemy was Buddhism rather than Confucianism, as he manifested the religious nature of national studies.
Thus, Hirata Atsutane departed from the positivistic research of Norinaga and presented a Shinto theory that contained many religious elements. For this reason, he was criticized by Motoori Ōhira, Ban Nobutomo, and other contemporary scholars of Japanese studies under Suzuya. On the other hand, the theology of Hirata Atsutane was handed down to many of his students, and Hirata school Kokugaku scholars such as Okuni Takamasa, Yano Gendo, Maruyama Sakuraku, Gonda Naosuke, and Fukuha Mishizei were responsible for the restoration of the monarchy and the formation of Shinto policies in the early Meiji period.
In addition, there was another force that began to emerge at the end of the Edo period: Late Mito Studies. To begin with, Mito-gaku is an academic discipline that originated in the Mito Domain, where Tokugawa Mitsukuni began compiling the Dai Nihonshi. The early Mito school, which developed until about the 18th century, was a Confucian discipline characterized by a view of history based on the Shuhistory project and Shuko-logic theory of cause and effect, led by Azumi Tanto, Sasamune Jun, Kuriyama Kofo, and Miyake Kanran. In the 19th century, with the emergence of various internal and external problems such as pressure from the powers and the decline of the Edo shogunate, he began to integrate national studies with the studies accumulated in the early Mito school, and to make active proposals to realpolitik by describing social thought. This style of study, known as late Mito studies, was pioneered by Fujita Yutani, a disciple of Tachihara Suiken, who was influenced by the study of the Baku school, and was further developed by his students, Fujita Toko and Aizawa Seishisai. In the Kodokan Descriptive Essay, Toko began with Japanese mythology and arrived at the idea of the rule of Japan by an emperor with a lineage of ten thousand generations, rejected the "liberalization" and "Zen domination" of dynastic changes in China, and introduced the three dynasties of the Xia dynasty, Shang dynasty, and Zhou dynasty, which were regarded as sacred in Confucianism. Zhou. At this point, Confucianism is no longer an absolute position in Mito studies. However, he also made criticisms of national studies, and Toko criticized Norinaga for taking the position that Confucian ethics were contrary to humanity, arguing that Confucian ethics, such as loyalty, filial piety, and humanity, had existed uniquely in Japan since heaven and earth. He also sharply criticized the practice of Shinto and Buddhism as destructive of the national identity, but highly praised the effectiveness of Buddhism as a means of indoctrinating the people.
Following this, Aizawa Shoshisai wrote "Shinron" to express his ideas. To counter Christianity as a means of invasion and to maintain Japan's independence, Shoshisai proposed a theory of national government in which Amaterasu had successive emperors rule over the country, and people from all walks of life were involved in some way in the governance of Japan while maintaining the status of sovereign and vassal. He then integrated the Confucian ethics of "loyalty" and "filial piety" by explaining that since people's ancestors had served the emperor as his vassals for generations, when they served the emperor in the same way, they were carrying on the work of their ancestors and realizing "filial piety" toward their ancestors. He also explained that the ritual to confirm the unity of the emperor and the people was the Dai-namesai. Furthermore, Shoshisai incorporated Confucianism into his interpretation of Shinto mythology. He claimed that the "Divine Decree of the Immortality of Heaven and Earth," which is found in the "Nihon Shoki" (Chronicles of Japan), in which Amaterasu ordered Qioniongine to rule the country from generation to generation by the descendants of the Heavenly Founder, was the beginning of the "loyalty of sovereign and vassal," and that the "Divine Decree of the Preservation of the Treasure Mirror," in which the Yatagami mirror was ordered to be enshrined as the divine body, was the beginning of the "filial piety of parents and children," which is one of the five principles of Shinto. He believed that this was proof that humanity had been established in Japan since ancient times, and he linked Shinto with Confucianism.
The late Mito school became the nursery ground for the ideas of Yoshida Shōin and other leading figures at the end of the Edo period.

## Empire and Showa periods
### Restoration of the Monarchy and the Divine and Buddhist Decrees

In 1867 (the third year of Keiō), the Great Decree of the Restoration of the Monarchy was issued. This was drafted by the Kokugaku scholar Tamamatsu Misao, who was a brainchild of Iwakura Tomomi, and it set forth the philosophy of "the founding of the Jinmu". The government first emphasized Shinto with the goal of unity of ritual and government and pro-emperor government, and revived the Shingi Kan to be an organization along with the Grand Council of State. The position of "missionary" was assigned to the Shinto priest, and based on the Daikyo Declaration, the Shinto religion was propagated. In addition, on March 28 of the following year, the Shinbutsu bunri ordinance was issued, ordering priests who had been involved in shrine rituals in the form of Bettō and shrine priests to return to the priesthood and become priests, the abolition of Buddhist deity titles such as Mahabodhisattva and Gongen, and the transfer of Buddhist objects such as Buddhist statues and pagodas within the shrine to other temples. However, lower-ranking officials of the Meiji government who were influenced by the Hirata School of Kokugaku, which had a strong anti-Buddhist ideology, as well as Shinto priests and some people who had antipathy toward the temples that had been dominant under the temple-contractor system in the Edo period, expanded the interpretation of the decree to include radical Abandonment of Buddhism On June 22, the Meiji government issued the "Notice that the Separation of Buddhism and Shinto is not the Abolition of Buddhism", calling for a halt to the Abolition of Buddhism, and in 1871 (the fourth year of the Meiji), it enacted the "Important Cultural Property", and the Abolition of Buddhism began to subside.
Shugendo and Onmyodo were also abolished, and with the abolition of Onmyoryo in 1870, Onmyoji became a private religious figure, and Shugendo was abolished in 1872, and Shugendo became a private religious figure or belonged to either the Shingon or Tendai sects
In addition, the Modern system of ranked Shinto shrines was introduced, referring to the ancient system of shrine rankings, and each shrine was officially ranked. The governmental shrines were divided into two groups: governmental shrines, which were given official status, and other shrines. Ise Jingu Shrine was placed at the top of these three ranks of shrines. As for the various shrines, they were divided into prefectural and prefectural shrines, which were to be respected by the residents of the prefectures, township and village shrines, which were to be respected by the residents of the villages, and unranked shrines, which did not fall under any of these categories, and each was placed under the jurisdiction of the local commissioner.
The development of the ritual system also progressed, and in 1875, the Shikibu Roudatsu "Shrine Rituals" was established, unifying the rituals of shrines throughout Japan for the first time. Under this law, the number of visitors and the ceremonial order of each shrine festival were determined, and the order of the opening of the doors, offering of food, offering of money, performance of congratulatory prayers, worship of sacrificial offerings, withdrawal of money, withdrawal of food, and closing of the doors were finalized. In 1907 (40th year of Meiji), the Ministry of Home Affairs issued the "Etiquette for Shrine Rituals and Events" to unify the etiquette of each shrine ritual. In addition, in 1914, the Imperial Ordinance No. 9, "Order on Rituals at Shrines under Government National Shrines," was promulgated, and shrine festivals were divided into three categories: Grand Festivals (Prayer Year Festival, New Year's Festival, Regular Festivals, Relocation Festival, and Temporary Offering Festival), Medium Festivals (New Year's Day Festival, New Year's Festival, New Year's Day Festival, Emperor's Day Festival, Meiji Day Festival, and other festivals with a special history at the shrine), and Small Festivals (other). In addition, as a detailed regulation, the "Rituals of Shrines under the Government National Shrine" was established. The "Imperial Household Ritual Order" and its supplementary formulas were established for the Imperial Household Rituals, and the "Jingu Ritual Order" and "Jingu Meiji Rituals" were established for the Jingu Rituals. The Emperor's accession to the throne, accession rituals, the First Rice Festival, and the Rite of the Crown Prince were determined by the Tengoku Order and the Rite of the Crown Prince.

### Formation and Development of State Shinto

In 1871 (the fourth year of the Meiji), a notice in the Grand Council of State Proclamation No. 234 defined shrines as "state religious services. Based on this, the way of shrines and Shinto in the pre-modern era was drastically changed, and a system in which shrines were controlled by the state, the so-called State Shinto, was formed.
At the beginning of the Meiji Restoration, the Hirata school of Kokugakusha was at the centre of the government, and the unity of ritual and politics and the nationalization of Shinto were promoted, but Ito Hirobumi, Iwakura Tomomi, and other important government officials of the open-minded faction began to aim for separation of church and state, and Tamamatsu Misao left the government in 1870 (Meiji 3) in conflict with Iwakura. In the following year (1871), Yano Gendo, Gonda Naosuke, Tsunoda Tadayuki, Maruyama Sakuraku and other Shintoists of the unity of ritual and government were arrested and expelled simultaneously in connection with the Two Lords Incident.
In 1875, the freedom of religion was guaranteed, and in 1882, the Ministry of Home Affairs issued a notice defining shrines as non-religious. This was a change from the original policy of aiming for a government based on Shinto with unity of ritual and government, and the theory of non-religion of shrines was adopted. The Meiji Constitution enacted in 1890 (Meiji 23) also did not include any mention of Shinto. After the abolition of the hereditary system of the Shinto priesthood, which was regarded as a "state religion," on the grounds that it should not be occupied by a single family, the state trained the priesthood and decided on their appointment, in the same way as officials (civil service). Since Shinto shrines were considered non-religious, the Shinto priests of the official national shrines were prohibited from engaging in religious activities, including involvement in Shinto funeral rites and the propagation of Shinto doctrine. For this reason, the shrine Shinto that existed before the early modern period, such as Yoshida Shinto and Ise Shinto, also disappeared as a force. In 1871 (Meiji 4), the "Shinto shrine territory decree" was promulgated, which collects all the land of shrines and temples except the precincts.
In 1871, the Department of Divinities was downgraded to the Ministry of Divinities, a ministry of the Grand Council of State, and in 1872 (1872), the shrine administration was integrated into the Ministry of Religion, which had jurisdiction over religious administration in general. The Ministry of Religion introduced a system of teaching positions to inculcate a spirit of patriotism and respect for the emperor among the people through the joint efforts of Shinto priests and Buddhist monks called Kyodo Shoku, but this system was quickly dismantled due to opposition from both the Shinto and Buddhist sides. Only the "Sanjo Kyoshoku," which outlined the teachings of patriotism and respect for the Emperor, was allowed to be propagated in the teaching position, and the spread of Shinto and Buddhist teachings and doctrines was prohibited. After the dissolution of the Ministry of Religion, the Shinto priests and others established the Bureau of Shinto Affairs to continue their activities. A controversy arose over the establishment of the Bureau of Shinto Affairs over whether or not Okuninushi should be added to the temple. In 1890, Kokugakuin, an educational institution established in the Office of Japanese Classics Research, later developed into Kokugakuin University, a Shinto university. On the other hand, Kogakukan, which was also established in 1882 within the shrine's Hayashizaki Library by order of the Jingu priest, later became another Shinto university, Kogakukan University.
In 1877, the status of Shinto priests was changed to that of non-officials, and in 1879, public spending on Shinto shrines was cut off. The payment of salaries from public funds to the Shinto priests had already been discontinued in 1873. In 1887, the government introduced a system of public funds for the preservation of government-owned shrines, and it was decided that public funds would be paid for the next 10 years, but after that, public funds would no longer be paid.
As mentioned above, in 1871, the "Shrine and Temple Supremacy Decree" was issued, which caused economic damage to shrines and temples. As a result, Shinto shrines suffered more economic damage than temples, which were expected to generate income from funerals and religious activities、and shrines were placed in a very difficult economic position throughout the Meiji period.
In the Meiji era, there were also Yasukuni Shrine to enshrine those who died in the service of the nation, Minatogawa Shrine to enshrine Kusunoki Masashige of the Southern Dynasty, Prince Moriyoshi of the Southern Dynasty, Kamakura-gū, and Kikuchi Taketoki, and many other shrines have been built to enshrine people who have contributed to the nation.
On the other hand, the Meiji government enshrined a large number of shrines. The number of shrines decreased from 190,000 to about 130,000 as a result of the reorganization of local shrines and unranked shrines that were closely connected to the community. This was opposed by naturalist Minakata Kumagusu and folklorist Kunio Yanagita.

### Deity Revival Movement

While the Shinto shrines were being cut off from public spending, the Shinto priests organized the National Shinto Priests' Association and launched a movement called the Shinto Priests' Restoration Movement, which demanded that the government restore the Shinto priests, arguing that the government should be responsible for providing a budget for the state's religious services. As a result, in 1894, the "Law Concerning the Shinto Priests of Prefectures and Subordinate Shrines" was issued, and the Shinto priests of prefectures and subordinate shrines were given the status of officials who were appointed by the local commissioner. In 1896, the House of Representatives passed the "Resolution on the Restoration of the Ministry of Divine Worship", but the restoration of the Ministry of Divine Worship itself was not realized. However, in 1900, the Ministry of the Interior's Bureau of Shrines and Temples was separated into the Bureau of Shrines and the Bureau of Religious Affairs, and a clear administrative distinction was made between Shinto and other religions. In 1906, the system of preservation money for government shrines and shrines was abolished, and government shrines and shrines were to be paid from the national treasury on a regular basis.
However, the amount of money to be paid to the shrine was to be kept within the framework of the existing preservation money system, and at the prices of the time, the annual payment was only 210,000 yen, which was about one-tenth of the expenses required to run a shrine of the size of a government-run shrine. In addition, the local government's offering of shibubaku-ryo, which was stipulated for shrines below the prefectural level, was "acceptable" and not mandatory. This did not result in a significant economic gain for the shrine.
Furthermore, the administration of Shinto shrines by the Shrine Bureau of the Ministry of Home Affairs was also extremely passive. The Ministry of the Interior's Bureau of Shrine Administration was also extremely passive in its administration of Shinto shrines. The Bureau strongly emphasized the precept that "Shinto is a non-religion," and worked to prohibit the expression of Shinto's own religious ideas, while it vigorously restrained the religious activities of Shinto priests, such as funeral rites and missionary activities. He also worked to suppress the debate between Shinto and other religions, arguing that all foreign religions were assimilated into the national spirit and therefore should not be challenged. Based on the above circumstances, Shintoist Chinhiko Ashiizu commented that the main task of the Bureau of Shinto Affairs was to ensure that Shinto was de-ideologized, that the spirit of Shinto was reduced to a vacuum, that the expression of Shinto's original thought was abandoned, and that a compromise with Buddhism, Christianity, and all other legitimate religions was painstakingly made so that the state Shinto system could exist without contradicting the separation of church and state. The Shinto bureau itself was treated as a third-class bureau within the Ministry of Home Affairs, and the bureau chiefs were considered to be waiting for their posts before becoming regional prefectural governors or directors of influential bureaus.
In 1940, the Shrine Bureau was reorganized into the Shinto Academy, but it was dismantled due to the defeat of the war without effective policies being implemented.

### Sectarian Shinto and Zaino-no Shinto Thought

In this way, the state Shinto system, which abandoned the expression of Shinto thought and created a vacuum of Shinto spirit, was condemned by the local Shinto priests and Shinto thinkers, some of whom developed their own Shinto thought or created private Shinto groups to confront it.
Among those groups, the thirteen schools of Sect Shinto were particularly powerful. These thirteen groups generally include Kurozumikyō Shinto Shusei Jingu-kyo Izumo-taishakyo Fuso-kyo Jikkō kyō Shinto Taiseikyo (神道大成教)Shinshu-kyo Mitake-kyo Shinto Taikyo Shinrikyo Misogikyo Konkokyo and Tenrikyo. Originally, Jingu-kyo was also included, but later it was reorganized into Jingu Hosaikai and withdrew from sect Shinto. These denominations began to move in the late Tokugawa period on the basis of modern Shinto thought and folk beliefs, and developed in the religious administration of the Meiji era. In 1875, the teaching position of the Ministry of Education was abolished, and as mentioned above, state Shinto came to be separated from its religious aspects based on the theory of Shinto non-religion. In 1875, the Ministry of Education was abolished, and as mentioned above, State Shinto was separated from its religious aspects based on the Secular Shrine Theory.
In particular, Tenrikyo grew rapidly from the mid-Meiji period and became the denomination with the largest number of followers among the denominational Shinto sects. Tenrikyo began when Miki Nakayama, the founder of Tenrikyo, received a divine blessing in 1838. Miki wrote down the words of God, "Tenri-Oh," which she received through the divine blessing, in a waka-style text called the Ofudesaki, and formed the doctrine. The content of the book is to preach a "joyous life" and emphasize the relationship between husband and wife, and not to emphasize the belief in the house or ancestral spirits. In the creation myth, the Tsukihi Oyasama taught Izanagi, a fish with a human face, and Izanami, a snake, in the muddy sea how to marry, and as a result, humans were born.
Also important is the emergence of Omoto. Oomoto originated in the year 1892, when Oyasama Nao Deguchi began to speak the words of the Konjin of the Gonon and also began to record the words by his penmanship. Two years later, Onisaburo Deguchi adopted Nao as his son-in-law, and they began to work together. The Oomoto system was established by combining the writing of Ko's pen and the spiritual techniques of Ohnisaburo. Since Kazusaburo Asano, a student at the Naval Engineering School, joined, there has been a succession of intellectuals and military personnel who have joined, and the rapid expansion of the cult has become a social problem. The Daibon teaches the unity of God and man, that God is the creator of all things in this world, that the universal spirit of God dwells in all things in this world, that man is the spiritual head of all things created by God, that God has given him immense wisdom and power to put into practice the ideal world that God desires, and that man should understand God's heart from the bottom of his heart, receive God's power, and build the ideal world of mankind through the unity of God and man. Oomoto also had an extremely large impact on the Shinto sects of later generations, giving rise to a series of new religious movements known as "Oomon-kei" and influencing the formation of the Seicho-no-ie.
As an overall characteristic of the teachings of denominational Shinto, while based on traditional Shinto beliefs, each denomination often had its own main deity and used traditional rituals such as magi nai and divination to propagate their teachings. Although Tenrikyo was recognized by the state, it was often oppressed by the state as it preached its own teachings and gained a large number of followers. Tenrikyo was attacked by the "Secret Instructions" of the Ministry of Home Affairs and was forced to change its rituals. Oomoto was also subjected to the first and second rounds of repression by the government authorities, who were alarmed by the expansion of the number of believers, and destroyed the headquarters facilities, dismantled the entire organization, and detained all the leaders.
There were also a number of Shinto thinkers who, unlike Shinto denominations and other Shinto groups, were active in their own thought processes. Kawamori Bonji, a Shintoist, criticized the Ministry of the Interior's Shinto policy and argued for the restoration of the Shinto spirit centered on misogi (purification). Influenced by Kawamori, Imaizumi Sadasuke, while conducting empirical research on Shinto since the time of Norinaga, was initiated into Kawamori, learned religious practices, and expressed his own Shinto philosophy. The idea is that God and human beings are essentially one, and that the truth of the universe is to purify the body and soul through purification, and to manifest the direct spiritual deity, who presides over the unification, to oneself to realize the state of God-human unity. Imaizumi criticized the government's shrine administration and the military's war policy, and gave lectures to politicians urging them to stop the war,、which led to his writings and lecture recordings being banned during the war.

### Shinto Directive and Postwar Shinto

After Japan surrendered at the end of World War II in 1945, the GHQ issued a Shinto directive during the occupation policy and dismantled the state Shinto system.Shinto was declared the root of nationalistic ideology by the GHQ, and in February 1946, all laws related to the administration of Shinto shrines since the Meiji era were abolished. In accordance with the provisions of the Religious Corporation Ordinance enacted in December 1945, Shinto shrines are to be treated as religious corporations in the same way as other religions, and the modern corporate personality system has been abolished. After the lifting of the occupation, the Religious Corporation Order was abolished and the Religious Corporation Law was enacted in 1951. This law set stricter standards for the recognition of religious corporations than the previous Religious Corporation Decree, and shrines throughout Japan became religious corporations in accordance with this law.
In January 1946, the Institute of Divinities, the Office of Japanese Classics Research, the National Association of Shinto Priests and the Jingūkyō were dissolved and the Association of Shinto Shrines was formed as a shrine organization to encompass all shrines in Japan that were to remain as religious corporations.
Although the shrines lost their official status, their economic prosperity surpassed that of the prewar period due to the implementation of Shinto funeral rites, which had been prohibited before the war, and the flourishing of various types of prayers. As the Japanese economy improved due to high economic growth, shrines were also upgraded and expanded beyond pre-war levels. On the other hand, as urbanization progressed due to economic growth, problems such as a decrease in the number of Ujiko (shrine parishioners) and a shortage of successors to the Shinto priests became apparent due to the depopulation of rural areas. Urban shrines have also begun to face problems such as the mobility of the Ujiko population, the deterioration of the shrine environment due to urban development, and the increase in the number of nominal Ujiko.

## Contemporary Shinto

In the Heisei era (1989–2019), the power spot boom started in the 2000s, and the red seal collecting boom started in the 2010s, resulting in an increase in the number of people visiting shrines. According to a survey conducted by the Jinja Honcho in 2015, only 2% of shrines have an annual income of more than 100 million yen, while about 60% of shrines have an annual income of less than 3 million yen. The number of shrines with an annual income of less than 3 million yen was about 60%. The number of shrines has decreased by about 300 in the past 10 years. For this reason, there have been a number of cases of shrines that have no choice but to rent out part of their premises to turn them into condominiums or other buildings to protect the shrine. On the other hand, there are examples of shrines that have managed to overcome their financial difficulties by making various innovations, such as creating original ema (votive picture tablet) and goshuin (red seal), organizing blind dates, and opening cafes as places of relaxation. In addition, there are shrines throughout Japan that are the target of pop culture pilgrimage, in which fans of anime and manga visit the stage of the work, such as Washinomiya Shrine, which has seen an increase in visitors since it became the stage for the anime "Lucky Star" in 2007 (Heisei 19).
In modern times, shrines play a role in annual events and life rituals for individuals and families, such as Hatsumode, Ogu mairi, Shichi-Go-San, and Wedding. As of 2009, the number of shrine buildings designated as national treasures totaled 27 and 30, and there are many examples of shrine rituals and ceremonies such as the Gion Festival being registered as Important Cultural Property (Japan) for rituals and ceremonies at shrines such as the Gion Festival, and many traditional performing arts such as Yabusame, Gagaku, and Kagura have been preserved. In addition, many shrines, including Meiji Shrine, which has about 100 hectares of forest and about 3,000 species of living organisms in the city, have forests within their precincts, thus playing a role in forest conservation in the city. In 2009 (Heisei 21), the Jinja Honcho participated as a representative of Shinto in the World Assembly for Peace, a gathering of diverse religious figures from around the world, and from the standpoint of Shinto, appealed for the necessity of coexistence between nature and humankind.
During the COVID-19 pandemic the 2021 Hatsumode was called Saisaki-mode and had special observances for it.