Japan is an archipelago of thousands of islands, with most of its population concentrated on four large ones. Situated where tectonic plates meet, it has repeatedly experienced earthquakes and volcanic eruptions. On many occasions its inhabitants have had to rebuild their towns after disasters.
The earliest communities of the archipelago, associated with the Jomon culture, relied largely on hunting, fishing and gathering. During the Yayoi period, people and technologies from mainland Asia helped spread rice cultivation and metalworking. The Ainu retained a distinct cultural identity, particularly in the north. The Japanese population developed over a long period and cannot be explained through simplistic racial categories. In the first centuries CE, powerful families emerged, with the Yamato court gradually gaining supremacy. Society was hierarchical, comprising farmers, specialised craftspeople and dependent labourers.
The veneration of ancestors and spiritual powers in nature formed the background to traditions later known as Shinto. In the sixth century Buddhism was introduced to the court through Korea. The new religion provoked disputes among powerful families but received considerable support during the reign of Empress Suiko (592–628) and through Prince Shotoku. Religious ideas arrived alongside techniques, written texts and administrative models from continental Asia.
In 645 a political upheaval at court opened the way for the Taika reforms. The central administration sought greater control over land, taxation and the provinces without abandoning Buddhism. Nara became the capital in 710 and Heian-kyo, modern Kyoto, in 794. The Heian court developed a refined way of life: silk garments, poetry, music, calligraphy and ceremonies occupied the aristocracy. Court women such as Murasaki Shikibu produced important literary works. Behind aristocratic prosperity, however, stood the labour of peasants. The growth of private estates and powerful warrior families weakened court authority. Conflicts between the Taira and Minamoto led to the emergence of the Kamakura military government in the late twelfth century.