art, poetry and prose. Lady Murasaki's The Tale of Genji and the lyrics of Japan's national anthem Kimigayo were written during this time.
Buddhism began to spread during the Heian era chiefly through two major sects, Tendai by Saichō, and Shingon by Kūkai. Pure Land Buddhism (Jōdo-shū, Jōdo Shinshū) greatly becomes popular in the latter half of the 11th century.
Japan's feudal era was characterized by the emergence and dominance of a ruling class of warriors, the samurai. In 1185, following the defeat of the Taira clan, sung in the epic Tale of Heike, samurai Minamoto no Yoritomo was appointed shogun and established a base of power in Kamakura. After his death, the Hōjō clan came to power as regents for the shoguns. The Zen school of Buddhism was introduced from China in the Kamakura period (1185–1333) and became popular among the samurai class. The Kamakura shogunate repelled Mongol invasions in 1274 and 1281, but was eventually overthrown by Emperor Go-Daigo. Go-Daigo was himself defeated by Ashikaga Takauji in 1336.
Ashikaga Takauji establishes the shogunate in Muromachi, Kyoto. It is a start of Muromachi Period (1336–1573). The Ashikaga shogunate receives glory in the age of Ashikaga Yoshimitsu, and the culture based on Zen Buddhism (art of Miyabi) has prospered. It evolves to Higashiyama Culture, and has prospered until the 16th century. On the other hand, the succeeding Ashikaga shogunate failed to control the feudal warlords (daimyo), and a civil war (the Ōnin War) began in 1467, opening the century-long Sengoku period ("Warring States").
During the 16th century, traders and Jesuit missionaries from Portugal reached Japan for the first time, initiating direct commercial and cultural exchange between Japan and the West. Oda Nobunaga conquered many other daimyo using European technology and firearms; after he was assassinated in 1582, his successor Toyotomi Hideyoshi unified the nation in 1590