[1] After Buddhism arrived from the continent via the Three Kingdoms of Korea in the 6th century, an effort was initially made to reproduce the original buildings as faithfully as possible, but gradually local versions of continental styles were developed both to meet Japanese tastes and to solve problems posed by local weather, which is more rainy and humid than in China.
After the forcible separation of temples and shrines ordered by the new government, the connection between the two religions was officially severed, but continued nonetheless in practice and is still visible today.
[5] Buddhist architecture in Japan is not native, but was imported from China and other Asian cultures over the centuries with such constancy that the building styles of all Six Dynasties are represented.
[6] Partly due also to the variety of climates in Japan and the millennium encompassed between the first cultural import and the last, the result is extremely heterogeneous, but several practically universal features can nonetheless be found.
[6] The general structure is almost always the same: columns and lintels support a large and gently curved roof, while the walls are paper-thin, often movable and in any case non-carrying.
[6] The slightly curved eaves extend far beyond the walls, covering verandas, and their weight must therefore be supported by complex bracket systems called tokyō.
[6][nb 4] Even in cases as that of Nikkō Tōshō-gū, where every available space is heavily decorated, ornamentation tends to follow, and therefore emphasize rather than hide, basic structures.
[6] Being shared by both sacred and profane architecture, these architectonic features made it easy converting a lay building into a temple.
[8] Thanks to the Nihon Shoki, however, we do know that an architect, six Buddhist priests and an image maker from the Korean kingdom of Paekche came to Japan in 577 to advise the Japanese on the arrangement of monastic buildings.
Prince Shōtoku actively promoted Buddhism and ordered the construction of Shitennō-ji in Osaka (593) and Hōryū-ji near his palace in Ikaruga (completed in 603).
The complex might have other structures such as a lecture hall (kō-dō), a belfry (shōrō), a sūtra repository (kyōzō), priests' and monks' quarters and bathhouses.
The arrangements not only of the buildings, groups of trees and ponds of the compound, but also of mountains and other geographic features in particular directions around the temple played important roles as well.
[22] Another early effort to reconcile kami worship and Buddhism was made in the 8th century during the Nara period with the founding of the so-called jungūji (神宮寺), or "shrine-temples".
At the end of the same century, in what is considered the second stage of the amalgamation, the kami Hachiman was declared to be protector-deity of the Dharma and a little bit later a bodhisattva.
[23] Shrines for him started to be built at temples, marking an important step ahead in the process of amalgamation of kami and Buddhist cults.
[23] When the great Buddha at Tōdai-ji in Nara was built, within the temple grounds was also erected a shrine for Hachiman, according to the legend because of a wish expressed by the kami himself.
[23] During the Heian period Buddhism became even more infused with Japanese elements: It met and assimilated local beliefs concerning ghosts and spirits (the so-called onrei and mitama), developing traits close to magic and sorcery which allowed it to penetrate a wide spectrum of social classes.
These two sects followed faithfully the Nanto Rokushū architectonic tradition in the plains, but in mountainous areas developed an original style.
The first, introduced by the priest Chōgen, was based on Song dynasty architecture and represented the antithesis of the simple and traditional wayō style.
After the turbulence of the Sengoku period and the establishment of the Tokugawa shogunate in 1603, old temples like Hieizan, Tō-ji and Tōdai-ji lost their power and the schools of Buddhism were surpassed in influence by the Nichiren-shū and Jōdo-shū.
The number of faithful coming for prayer or pilgrimage had increased, so designs changed to take into account their necessities, and efforts were made to catch their ears and eyes.
[2] Early pre-modern temples were saved from monotony by elaborate structural details, the use of undulating karahafu gables and the use of buildings of monumental size.
[38] While structural design tended to become gradually more rational and efficient, the surface of religious edifices did the opposite, growing more elaborate and complex.
After the middle Edo period, passed its zenith, religious architecture ended up just repeating told ideas, losing its innovative spirit and entering its final decline.
Representative examples for the Momoyama (1568–1603) and Edo period (1603–1868) temple architecture are the Karamon at Hōgon-ji and the main hall of Kiyomizu-dera, respectively.
[38] In 1868 the government enacted its policy of separation of Buddhas and kami called Shinbutsu bunri,[39] with catastrophic consequences for the architecture of both temples and shrines.
[40][41] Because many structures became illegal where they stood, such as Buddhist pagodas within the precincts of Shinto shrines, they had to be destroyed, according to the letter of the law.