The Japanese Archipelago was connected to mainland Asia during the last ice age, which ended approximately 12,000 years ago. When sea levels rose, the islands separated, creating the Tsugaru Strait between Honshu and Hokkaido and the Soya Strait between Hokkaido and what is now Russia. This geographic isolation shaped the development of cultures that would adopt and transform continental influences rather than being subsumed by them. The earliest pottery in the world appears in Japan during the Jomon period, with carbon dating placing fragments found at multiple sites to approximately 16,000 years ago. These Jomon people were hunter-gatherers who lived in pit dwellings and created elaborate cord-marked pottery. The period lasted until approximately 300 BCE. Genetic studies published in the journal Science in 2021 indicate that modern Japanese populations descended from three ancestral groups: the Jomon people, Yayoi period rice farmers who arrived from the Korean Peninsula around 900 BCE, and a third population from Northeast Asia that arrived during the Kofun period after 300 CE.
The Yayoi period introduced wet-rice agriculture to western Japan, specifically to northern Kyushu around 900 BCE based on radiocarbon dating of organic materials at archaeological sites. This agricultural revolution spread eastward across Honshu over the next six centuries. The Yayoi people brought bronze and iron metallurgy, weaving technology, and new burial practices from the Korean Peninsula. By 300 CE, rice cultivation had reached the Kanto Plain. The shift to agriculture created surplus food production, which enabled population growth and social stratification. Archaeological evidence from the Yoshinogari site in Saga Prefecture shows moated settlements, raised-floor warehouses for rice storage, and evidence of social hierarchies by 100 BCE. Chinese chronicles from the third century CE, specifically the Wei Zhi written around 297 CE, describe the land of Wa (Japan) as containing more than one hundred small political units, some governed by female rulers. The chronicle specifically mentions Queen Himiko, who ruled Yamatai-koku and died around 248 CE, though the location of her domain remains debated among archaeologists.
The Kofun period from approximately 250 CE to 538 CE is named for the massive keyhole-shaped burial mounds constructed for ruling elites. The largest, the Daisen Kofun in Sakai near Osaka, measures 486 meters in length and is traditionally attributed to Emperor Nintoku, dated to the fifth century CE. This tomb covers 46 hectares, making it larger by area than the Great Pyramid of Giza. Kofun construction required mobilization of thousands of workers and represented the consolidation of political power in the Yamato region of what is now Nara Prefecture. The Yamato court established tributary relations with Chinese dynasties, sending embassies to the Liu Song dynasty in 421 CE, 425 CE, 430 CE, 443 CE, and 451 CE according to Chinese court records. These records refer to the rulers as the "Five Kings of Wa." Archaeological evidence shows Korean Peninsula craftsmen working in Japan during this period, producing armor, weapons, and horse equipment found in kofun across Honshu. The Yamato court adopted Chinese writing during this period, with the earliest extant writing in Japan appearing on iron swords dated to the fifth century CE.
Buddhism arrived in Japan officially in 552 CE when the Baekje kingdom on the Korean Peninsula sent Buddhist sutras and an image of Buddha to the Yamato court, according to the Nihon Shoki chronicle compiled in 720 CE. Some sources date this transmission to 538 CE. Prince Shotoku, who served as regent from 593 CE to 622 CE, promoted Buddhism and Chinese political models. He promulgated the Seventeen Article Constitution in 604 CE, a document outlining principles of governance that blended Confucian ethics with Buddhist concepts. Shotoku commissioned the construction of Horyu-ji Temple in Nara Prefecture around 607 CE; its main hall and five-story pagoda contain the world's oldest surviving wooden structures, with dendrochronology dating timbers to 670 CE for the current buildings, which replaced earlier structures destroyed by fire. The Taika Reforms beginning in 645 CE restructured Japan's political system along Chinese lines, creating a centralized state with provinces, a census system, and state ownership of agricultural land that was allocated to farmers who paid taxes in rice and labor.
The capital moved to Nara in 710 CE, establishing Japan's first permanent capital city modeled on Chang'an, the Tang dynasty Chinese capital. Nara remained the capital until 794 CE. The period saw massive temple construction projects and the creation of Japan's first written chronicles. The Kojiki was completed in 712 CE and the Nihon Shoki in 720 CE, both compiling myths, legends, and historical records to legitimate the imperial line's divine descent from the sun goddess Amaterasu. Emperor Shomu ordered the construction of Todai-ji Temple in Nara, which was completed in 752 CE. The Great Buddha Hall housed a bronze statue of Vairocana Buddha that stood 14.7 meters tall and required eight casting attempts between 743 CE and 749 CE, consuming approximately 444 tonnes of bronze and 130 kilograms of gold for gilding. The dedication ceremony in 752 CE drew ten thousand participants. The Man'yoshu, Japan's oldest surviving poetry anthology, was compiled during the Nara period, containing 4,516 poems written between the fourth and eighth centuries CE.
The capital relocated to Heian-kyo, modern Kyoto, in 794 CE under Emperor Kanmu. Kyoto remained Japan's imperial capital for 1,074 years until 1868. The Heian period from 794 CE to 1185 CE marked the peak of the imperial court's cultural achievements. The court developed an aesthetic culture centered on poetry, literature, and elaborate ceremonies. The kana syllabary writing systems hiragana and katakana were developed during the ninth century CE, enabling Japanese language literature to flourish. Murasaki Shikibu, a court lady, wrote the Tale of Genji in the early eleventh century CE, a 1,300-page narrative following the life and loves of Prince Genji. Literary scholars consider it the world's first novel. Sei Shonagon, another court lady, wrote the Pillow Book around 1002 CE, a collection of observations and lists. The Fujiwara family dominated court politics from the ninth through eleventh centuries by marrying daughters to emperors and serving as regents. Fujiwara no Michinaga held power from 995 CE to 1027 CE, during which four emperors were his sons-in-law and three were his grandsons.
The court's political power declined as provincial warrior clans gained strength. The Taira and Minamoto clans fought for dominance in the late twelfth century. The Genpei War from 1180 CE to 1185 CE ended with Minamoto no Yoritomo's victory at the Battle of Dan-no-ura in the Inland Sea in 1185 CE, where the child emperor Antoku drowned when the Taira forces were defeated. Yoritomo established a military government in Kamakura in the Kanto Plain in 1185 CE and received the title of shogun from the emperor in 1192 CE. This created a dual power structure that lasted until 1868: emperors in Kyoto held symbolic authority while shoguns wielded actual political and military power. The Kamakura shogunate ruled from 1192 CE to 1333 CE. Zen Buddhism arrived from China during the Kamakura period, with the Rinzai school introduced by the monk Eisai in 1191 CE and the Soto school by Dogen in 1227 CE. Zen practices influenced warrior culture, the tea ceremony, rock gardens, and ink painting.
The Mongol Empire under Kublai Khan attempted to invade Japan twice. The first invasion in 1274 CE involved approximately 23,000 Mongol and Korean troops who landed on northern Kyushu near modern Fukuoka. The Mongols withdrew after one day of fighting when a storm damaged their fleet. The second invasion in 1281 CE deployed approximately 140,000 troops on 4,400 ships from both China and Korea. The Japanese had constructed coastal fortifications, and the invading forces were unable to establish a beachhead. After seven weeks, a typhoon destroyed much of the Mongol fleet in August 1281 CE, killing perhaps 50,000 to 70,000 troops. The Japanese called this storm kamikaze, or divine wind. The invasions bankrupted the Kamakura shogunate, which could not adequately reward warriors who had defended the country, contributing to its fall in 1333 CE.
The Ashikaga shogunate ruled from Kyoto from 1336 CE to 1573 CE, though effective control weakened considerably after the Onin War from 1467 CE to 1477 CE. This conflict devastated Kyoto and fragmented Japan into domains controlled by regional warlords called daimyo. The Sengoku period from 1467 CE to 1615 CE saw near-constant warfare among hundreds of competing domains. Portuguese traders reached Japan in 1543 CE when a Chinese ship carrying Portuguese passengers wrecked on Tanegashima island south of Kyushu. The Portuguese introduced firearms, which Japanese swordsmiths quickly learned to manufacture. By 1560 CE, Japanese armies deployed thousands of matchlock arquebuses. Jesuit missionary Francis Xavier arrived in 1549 CE and established the first Christian missions in Kyushu. By 1580 CE, approximately 150,000 Japanese had converted to Christianity, concentrated in Kyushu.
Oda Nobunaga began the unification of Japan after seizing control of territories around Kyoto in the 1560s. He defeated the Imagawa clan at the Battle of Okehazama in 1560 CE despite being outnumbered roughly ten to one. Nobunaga employed firearms extensively in battle and destroyed the military power of Buddhist monasteries that had maintained armed forces. He burned the Enryaku-ji Temple complex on Mount Hiei near Kyoto in 1571 CE. Nobunaga controlled approximately one-third of Japan when he was assassinated by one of his generals, Akechi Mitsuhide, at Honno-ji Temple in Kyoto in 1582 CE. His lieutenant Toyotomi Hideyoshi completed the unification by 1590 CE after subduing all remaining daimyo. Hideyoshi conducted land surveys that assessed agricultural productivity of every domain and disarmed the peasantry, collecting swords and melting them down to create a statue at Hokoku Shrine in Kyoto. This separation of warriors from farmers became rigid social policy.
Hideyoshi invaded Korea twice, in 1592 CE and 1597 CE, attempting to conquer China through the Korean Peninsula. The first invasion deployed approximately 158,000 troops who captured Seoul within three weeks. Korean naval forces under Admiral Yi Sun-sin destroyed Japanese supply lines using iron-clad turtle ships. Ming Chinese forces entered Korea and combined Korean-Chinese armies drove Japanese forces back. The invasion failed by 1593 CE. The second invasion from 1597 CE to 1598 CE also failed to hold territory. Hideyoshi died in 1598 CE and Japanese forces withdrew. The invasions devastated Korea and brought Korean potters and craftsmen to Japan, establishing pottery centers in Kyushu. The wars also introduced sweet potatoes to Japan from Korea, which became an important supplementary crop.
Tokugawa Ieyasu defeated rival daimyo at the Battle of Sekigahara in 1600 CE, the largest battle in samurai history with approximately 160,000 warriors engaged. The battle lasted one day and Ieyasu's eastern coalition decisively defeated the western coalition. The emperor appointed Ieyasu shogun in 1603 CE, establishing the Tokugawa shogunate with its capital in Edo, modern Tokyo. The Tokugawa instituted a system of alternate attendance requiring all daimyo to maintain residences in Edo and spend alternate years there, effectively holding their families hostage and preventing rebellion. The shogunate controlled all major cities, mines, and foreign trade. It froze the social hierarchy into four classes: warriors, farmers, artisans, and merchants, with outcasts below these groups. The Tokugawa persecuted Christians, crucifying twenty-six Christians in Nagasaki in 1597 CE. After the Shimabara Rebellion of 1637 to 1638 CE, in which approximately 27,000 Christian peasants and masterless samurai besieged themselves in Hara Castle before being massacred, the shogunate banned Christianity and expelled all foreigners except Dutch and Chinese traders who were confined to Dejima, an artificial island in Nagasaki harbor. This sakoku or closed country policy lasted from 1639 CE to 1853 CE.
The Edo period from 1603 CE to 1868 CE brought peace that enabled economic development and urban growth. Edo became the world's largest city by 1720 CE with a population exceeding one million. Osaka developed as a commercial center. Literacy rates reached 40 percent for men and 15 percent for women by the early nineteenth century, higher than most European countries. Publishing flourished with woodblock printed books, including popular fiction, poetry, religious texts, and practical manuals. Ukiyo-e woodblock prints depicting kabuki actors, courtesans, landscapes, and erotica achieved high artistic quality. Katsushika Hokusai created The Great Wave off Kanagawa around 1831 CE, part of his Thirty-six Views of Mount Fuji series. Utagawa Hiroshige created the Fifty-three Stations of the Tokaido series depicting scenes along the Tokaido road between Edo and Kyoto between 1833 CE and 1834 CE. These prints later influenced European Impressionist painters. Matsuo Basho refined haiku poetry during the late seventeenth century, establishing its seventeen-syllable form. The shogunate promoted Neo-Confucianism as official ideology emphasizing loyalty, hierarchy, and social order. Agricultural productivity increased through new crop varieties and better irrigation. The population stabilized around 30 million from 1720 CE to 1850 CE.
American Commodore Matthew Perry entered Edo Bay in July 1853 CE with four warships and demanded Japan open to trade. He returned in February 1854 CE with eight ships and the shogunate signed the Convention of Kanagawa opening two ports to American ships. Similar treaties followed with Britain, Russia, and the Netherlands. These unequal treaties limited Japan's tariff autonomy and granted extraterritoriality to foreign nationals. The treaties humiliated the shogunate and strengthened anti-foreign sentiment. Domains in southwestern Japan, particularly Satsuma and Choshu, had historical resentment of Tokugawa control. These domains acquired modern weapons and began advocating for restoration of imperial rule. Armed clashes between shogunate forces and domain armies occurred from 1863 CE to 1868 CE. In January 1868 CE, forces from Satsuma, Choshu, and allied domains seized the Imperial Palace in Kyoto and declared restoration of imperial rule under the fifteen-year-old Emperor Meiji. The Boshin War from January 1868 CE to June 1869 CE saw imperial forces defeat shogunate loyalists. The last shogun, Tokugawa Yoshinobu, surrendered Edo peacefully in April 1868 CE. Resistance continued in northern Honshu until November 1868 CE and in Hokkaido until June 1869 CE.
The Meiji government moved the emperor from Kyoto to Edo, which was renamed Tokyo, or eastern capital, in 1868 CE. The emperor announced the Charter Oath in April 1868 CE, pledging to seek knowledge throughout the world and establish deliberative assemblies. The government abolished the han domains in 1871 CE, replacing them with prefectures under central government control. It eliminated the samurai class between 1871 CE and 1876 CE, prohibiting the wearing of swords in 1876 CE and converting samurai stipends to lump-sum payments. Former samurai lost their hereditary incomes and status. Some rebelled, most notably in the Satsuma Rebellion of 1877 CE when approximately 40,000 samurai led by Saigo Takamori fought government forces. The rebellion was crushed by the conscript army after seven months. Universal male conscription was instituted in 1873 CE, creating a modern military force. The Meiji government sent numerous missions abroad to study Western institutions. The Iwakura Mission from 1871 CE to 1873 CE sent approximately fifty officials to the United States and Europe to observe governments, factories, schools, and military organizations.