Prehistory and ancient history
A Paleolithic culture around 30,000 BC constitutes the first known habitation of the Japanese archipelago. This was followed from around 14,000 BC (the start of the Jōmon period) by a Mesolithic to Neolithic semi-sedentary hunter-gatherer culture, who include ancestors of both the contemporary Ainu people and Yamato people, characterized by pit dwelling and rudimentary agriculture. Decorated clay vessels from this period are some of the oldest surviving examples of pottery in the world. Around 300 BC, the Yayoi people began to enter the Japanese islands, intermingling with the Jōmon. The Yayoi period, starting around 500 BC, saw the introduction of practices like wet-rice farming, a new style of pottery, and metallurgy, introduced from China and Korea.
Japan first appears in written history in the Chinese Book of Han. According to the Records of the Three Kingdoms, the most powerful kingdom on the archipelago during the 3rd century was called Yamataikoku. Buddhism was first introduced to Japan from Baekje of Korea, but the subsequent development of Japanese Buddhism was primarily influenced by China. Despite early resistance, Buddhism was promoted by the ruling class and gained widespread acceptance beginning in the Asuka period (592–710).
The Nara period (710–784) of the 8th century marked the emergence of a strong Japanese state, centered on an imperial court in Heijō-kyō (modern Nara). The Nara period is characterized by the appearance of a nascent literature as well as the development of Buddhist-inspired art and architecture. The smallpox epidemic of 735–737 is believed to have killed as much as one-third of Japan's population. In 784, Emperor Kammu moved the capital from Nara to Nagaoka-kyō before relocating it to Heian-kyō (modern Kyoto) in 794.
This marked the beginning of the Heian period (794–1185), during which a distinctly indigenous Japanese culture emerged, noted for its