||The following text needs to be harmonized with text in History of Japan#Sakoku—seclusion from the outside world.
Sakoku (鎖国, "chained country") was the foreign relations policy of Japan under which no foreigner could enter nor could any Japanese leave the country on penalty of death. The policy was enacted by the Tokugawa shogunate under Tokugawa Iemitsu through a number of edicts and policies from 1633–39 and remained in effect until 1853 with the arrival of the Black Ships of Commodore Matthew Perry and the forcible opening of Japan to Western trade. It was still illegal to leave Japan until the Meiji Restoration (1868).
The term Sakoku originates from the manuscript work Sakoku-ron (「鎖国論」) written by Japanese astronomer Shizuki Tadao (志筑忠雄) in 1801. Shizuki invented the word while translating the works of the 17th century German traveller Engelbert Kaempfer concerning Japan.
Japan was not completely isolated under the sakoku policy. It was a system in which strict regulations were applied to commerce and foreign relations by the shogunate, and by certain feudal domains (han). The policy stated that the only European influence permitted was the Dutch factory at Dejima in Nagasaki. Trade with China was also handled at Nagasaki. Trade with Korea was limited to the Tsushima Domain (today part of Nagasaki Prefecture). Trade with the Ainu people was limited to the Matsumae Domain in Hokkaidō, and trade with the Ryūkyū Kingdom took place in Satsuma Domain (present-day Kagoshima Prefecture). Apart from these direct commercial contacts in peripheral provinces, trading countries sent regular missions to the shogun in Edo.
Trade under sakoku 
Japan traded at this time with five entities, through four "gateways." Through the Matsumae domain in Hokkaidō (then called Ezo), they traded with the Ainu people. Through the Sō clan daimyo of Tsushima, they had relations with Joseon Dynasty Korea. The Dutch East India Company was permitted to trade at Nagasaki, alongside private Chinese traders, who also traded with the Ryūkyū Kingdom. Ryūkyū, a semi-independent kingdom for nearly all of the Edo period, was controlled by the Shimazu family daimyo of Satsuma Domain. Tashiro Kazui has shown that trade between Japan and these entities was divided into two kinds of trade: Group A in which he places China and the Dutch, "whose relations fell under the direct jurisdiction of the Bakufu at Nagasaki" and Group B, represented by the Korean Kingdom and the Ryūkyū Kingdom, "who dealt with Tsushima (the Sō clan) and Satsuma (the Shimazu clan) domains respectively."
These two different groups of trade basically reflected a pattern of incoming and outgoing trade. The outgoing trade flowing out from Japan to Korea and the Ryūkyū Kingdom, eventually being brought from those places to China. In the Ryūkyū Islands and Korea, the clans in charge of trade with the Ryūkyū Kingdom and Korea built trading towns outside Japanese territory—where commerce actually took place. Due to the necessity for Japanese subjects to travel to and from these trading posts, this trade resembled something of an outgoing trade, with Japanese subjects making regular contact with foreign traders in essentially extraterritorial land. Trade with Chinese and Dutch traders in Nagasaki took place on an island called Dejima, separated away from the city by a small strait; foreigners could not enter Japan from Dejima, nor could Japanese enter Dejima, without special permissions or authority.
Trade in fact prospered during this period, and though relations and trade were restricted to certain ports, the country was far from closed. In fact, as the shogunate expelled the Portuguese, they simultaneously engaged in discussions with Dutch and Korean representatives to ensure that the overall volume of trade did not suffer. Thus, it has become increasingly common in scholarship in recent decades to refer to the foreign relations policy of the period not as sakoku, implying a totally secluded, isolated, and "closed" country, but by the term kaikin (海禁, "maritime prohibitions") used in documents at the time, and derived from the similar Chinese concept hai jin.
It is conventionally regarded that the shogunate imposed and enforced the sakoku policy in order to remove the colonial and religious influence of primarily Spain and Portugal, which was perceived as posing a threat to the stability of the shogunate and to peace in the archipelago. The increasing number of Catholic converts in southern Japan (mainly Kyūshū) was a significant element of that which was seen as a threat. Based on work conducted by Japanese historians in the 1970s some scholars have however challenged this view, believing it to only be a partial explanation of political reality. The motivations for the gradual strengthening of the maritime prohibitions during the early 17th century should be considered within the context of the Tokugawa Bakufu's domestic agenda. One element of this agenda was to acquire sufficient control over Japan's foreign policy so to not only guarantee social peace, but to also maintain Tokugawa supremacy over the other powerful lords in the country, particularly the tozama daimyo. These daimyo had used East Asian trading linkages to profitable effect during the sengoku period, which allowed them to build up their military strength as well. By restricting the daimyo's ability to trade with foreign ships coming to Japan or pursue trade opportunities overseas, the Tokugawa bakufu could ensure none would become too powerful to challenge the bakufu's supremacy. This is consistent with the generally agreed rationale for the Tokugawa bakufu's implementation of the system of alternate attendance, or sankin kōtai. Directing trade predominantly through Nagasaki, which came under Toyotomi Hideyoshi's control in 1587, would enable the bakufu, through taxes and levies, to bolster its own treasury. This was no small matter as lack of wealth had limited both the preceding Kamakura bakufu and the Muromachi bakufu in crucial ways. The focus on the removal of Western and Christian influence from the Japanese archipelago as the main driver of the kaikin could be argued to be a somewhat eurocentric reading of Japanese history, although it is a common perception.
Nevertheless Christianity, and the two colonial powers it was most strongly associated with, were seen as genuine threats by the Tokugawa bakufu. Once the remnants of the Toyotomi clan had been defeated in 1615, Tokugawa Hidetada turned his attention to the sole remaining credible challenge to Tokugawa supremacy. Religious challenges to central authority were taken seriously by the bakufu as ecclesiastical challenges by armed Buddhist monks were common during the sengoku period. The Empress Meishō (1624–96) also had great doubts when she heard about how the Spanish and Portuguese were settling in the New World, and thought that Japan would soon become one of the many countries in their possession.
Protestant English and Dutch traders reinforced this perception by accusing the Spanish and Portuguese missionaries of spreading the religion systematically, as part of a claimed policy of culturally dominating and colonizing Asian countries. The Dutch and English were generally seen by the Japanese to be able to separate religion and trade, while their Iberian counterparts were looked upon with much suspicion. The Dutch, eager to take over trade from the Spanish and Portuguese, had no problems reinforcing this view. The number of Christians in Japan had been steadily rising due to the efforts of missionaries, such as Francis Xavier and daimyo converts. The direct trigger which is said to have spurred the imposition of sakoku was the Shimabara Rebellion of 1637–38, an uprising of 40,000 mostly Christian peasants. In the aftermath, the shogunate accused missionaries of instigating the rebellion, expelled them from the country, and strictly banned the religion on penalty of death. The remaining Japanese Christians, mostly in Nagasaki, formed underground communities and came to be called Kakure Kirishitan. All contact with the outside world became strictly regulated by the shogunate, or by the domains (Tsushima, Matsumae, and Satsuma) assigned to the task. Dutch traders were permitted to continue commerce in Japan only by agreeing not to engage in missionary activities. Today, the Christian percentage of the population (1%) in Japan remains far lower than in other East Asian countries like China (5%), Vietnam (7%), South Korea (29.2%) and the Philippines (over 90%).
The sakoku policy was also a way of controlling commerce between Japan and other nations, as well as asserting its new place in the East Asian hierarchy. The Tokugawa had set out to create their own small scale international system where Japan could continue to access the trade in essential commodities such as medicines, and gain access to essential intelligence about happenings in China, while avoiding having to agree to a subordinate status within the Chinese tributary system. Japan's generally constructive official diplomatic relationship with Joseon Korea allowed regular embassies (Tongsinsa) to be dispatched by Korea to Japan. Together with the brisk trade between Tsushima and Korea, as well as the presence of Japanese in Pusan, Japan was able to access Chinese cultural, intellectual and technological developments throughout the Edo period. At the time of the promulgation of the strictest versions of the maritime prohibitions, the Ming dynasty had lost control of much of China and it was unnecessary, and perhaps undesirable, for Japan to pursue official diplomatic relations with either of the Ming or the Qing governments while the issue of imperial legitimacy was unsettled. Japan was able to acquire the imported goods it required through intermediary trade with the Dutch and through the Ryukyu Islands. The Japanese actually encouraged the Ryūkyū Kingdom's rulers to maintain a tributary relationship with China, even though the Shimazu clan had surreptitiously established great political influence in the Ryukyu Islands. The Qing became much more open to trade after it had defeated the Ming loyalists in Taiwan, and thus Japan's rulers felt even less need to establish official relations with China.
Liberalizing challenges to sakoku did come from within Japan's elite in the 18th century, but they came to naught. Later on, the sakoku policy was the main safeguard against the total depletion of Japanese mineral resources — such as silver and copper — to the outside world. However, while silver exportation through Nagasaki was controlled by the shogunate to the point of stopping all exportation, the exportation of silver through Korea continued in relatively high quantities.
The way Japan kept abreast of Western technology during this period was by studying medical and other texts in the Dutch language obtained through Dejima. This developed into a blossoming field in the late 18th century which was known as Rangaku (Dutch studies). It became obsolete after the country was opened and the sakoku policy collapsed. Thereafter, many Japanese students (e.g. Kikuchi Dairoku) were sent to study in foreign countries, and many foreign employees were employed in Japan (see o-yatoi gaikokujin).
Challenges to seclusion 
Many isolated attempts to end Japan's seclusion were made by expanding Western powers during the 17th, 18th and 19th centuries. American, Russian and French ships all attempted to engage in relationship with Japan, but were rejected.
- In 1647 Portuguese warships attempted to enter Nagasaki. The Japanese formed a blockade of almost 900 boats to stop the ships. After the event, the Japanese added more security to Nagasaki as fears rose that other countries would challenge the new seclusion policy and attempt to enter through Nagasaki. 
- In 1778, a merchant from Yakutsk by the name of Pavel Lebedev-Lastochkin arrived in Hokkaidō with a small expedition. He offered gifts, and politely asked to trade in vain.
- In 1787, Jean-François de Galaup, comte de La Pérouse navigated in Japanese waters. He visited the Ryūkyū islands and the strait between Hokkaidō and Sakhalin, naming it after himself.
- In 1791, two American ships commanded by the American explorer John Kendrick—the Lady Washington, under Captain Kendrick, and the Grace, under Captain William Douglas—stopped for 11 days on Kii Oshima island, south of the Kii Peninsula. Kendrick was the first known American to have visited Japan. He apparently planted an American flag and claimed the islands, although accounts of his visit in Japan are nonexistent.
- In 1792 the Russian subject Adam Laxman visited the island of Hokkaido.
- From 1797 to 1809, several American ships traded in Nagasaki under the Dutch flag, upon the request of the Dutch who were not able to send their own ships because of their conflict against Britain during the Napoleonic Wars:
- In 1797 US Captain William Robert Stewart, commissioned by the Dutch from Batavia, took the ship Eliza of New York to Nagasaki, Japan, with a cargo of Dutch trade goods.
- In 1803, William Robert Stewart returned on board a ship named "The Emperor of Japan" (the captured and renamed "Eliza of New York"), entered Nagasaki harbour and tried in vain to trade through the Dutch enclave of Dejima.
- Another American captain John Derby of Salem, tried in vain to open Japan to the opium trade.
- In 1804, the Russian expedition around the world led by captain Adam Johann von Krusenstern reached Nagasaki. The Russian envoy Nikolai Rezanov requested trade exchanges. The Bakufu refused the request and the ships had to leave in spring 1805. The Russians attacked Sakhalin and the Kuril islands during the following three years, prompting the Bakufu to build up defences in Ezo.
- In 1808, the British frigate HMS Phaeton, raiding on Dutch shipping in the Pacific, sailed into Nagasaki under a Dutch flag, demanding and obtaining supplies by force of arms.
- In 1811, the Russian naval lieutenant Vasily Golovnin landed on Kunashiri Island, and was arrested by the Bakufu and imprisoned for 2 years.
- In 1825, following a proposal by Takahashi Kageyasu, the Bakufu issued an "Order to Drive Away Foreign Ships" (Ikokusen uchiharairei, also known as the "Ninen nashi", or "No second thought" law), ordering coastal authorities to arrest or kill foreigners coming ashore.
- In 1830, the Bonin Islands, claimed by Japan but uninhabited, were settled by the American Nathaniel Savory, who landed on the island of Chichijima and formed the first colony there.
- In 1837, an American businessman in Guangzhou named Charles W. King saw an opportunity to open trade by trying to return to Japan three Japanese sailors (among them, Otokichi) who had been shipwrecked a few years before on the coast of Oregon. He went to Uraga Channel with Morrison, an unarmed American merchant ship. The ship was fired upon several times, and finally sailed back unsuccessfully.
- In 1842, following the news of the defeat of China in the Opium War and internal criticism following the Morrison Incident, the Bakufu responded favourably to foreign demands for the right to refuel in Japan by suspending the order to execute foreigners and adopting the "Order for the Provision of Firewood and Water" (Shinsui kyuyorei).
- In 1844, a French naval expedition under Captain Fornier-Duplan visited Okinawa on April 28, 1844. Trade was denied, but Father Forcade was left behind with a translator.
- In 1845, whaling ship Manhattan (1843) rescued 22 Japanese shipwrecked sailors. Captain Mercator Cooper was allowed into Edo Bay, where he stayed for four days and met with the Governor of Edo and several high officers representing The Emperor. They were given several presents and allowed to leave unmolested, but told never to return.
- On July 20, 1846, Commander James Biddle, sent by the United States Government to open trade, anchored in Tokyo Bay with two ships, including one warship armed with 72 cannons, but his demands for a trade agreement remained unsuccessful.
- On July 24, 1846, the French Admiral Cécille arrived in Nagasaki, but failed in his negotiations and was denied landing. He was accompanied by two priests who had learnt the Japanese language in Okinawa: Father Forcade and Father Ko.
- In 1848, Half-Scottish/Half-Chinook Ranald MacDonald pretended to be shipwrecked on the island of Rishiri in order to gain access to Japan. He was sent to Nagasaki, where he stayed for 10 months and became the first English teacher in Japan. Upon his return to America, MacDonald made a written declaration to the United States Congress, explaining that the Japanese society was well policed, and the Japanese people well behaved and of the highest standard.
- In 1848, Captain James Glynn sailed to Nagasaki, leading at last to the first successful negotiation by an American with "Closed Country" Japan. James Glynn recommended to the United States Congress that negotiations to open Japan should be backed up by a demonstration of force, thus paving the way to Perry's expedition.
- In 1849, the Royal Navy's HMS Mariner entered Uraga Harbour to conduct a topographical survey. Onboard was the Japanese castaway Otokichi, who acted as a translator. To avoid problems with the Japanese authorities, he disguised himself as Chinese, and said that he had learned Japanese from his father, allegedly a businessman who had worked in relation with Nagasaki.
- In 1853, the Russian embassy of Yevfimy Putyatin arrived in Nagasaki (August 12, 1853). The embassy demonstrated a steam engine, which led to the first recorded attempts at manufacturing a steam engine in Japan, by Hisashige Tanaka in 1853.
These largely unsuccessful attempts continued until, on July 8, 1853, Commodore Matthew Perry of the U.S. Navy with four warships: Mississippi, Plymouth, Saratoga, and Susquehanna steamed into the Bay of Edo (Tokyo) and displayed the threatening power of his ships' Paixhans guns. He demanded that Japan open to trade with the West. These ships became known as the kurofune, the Black Ships.
End of seclusion 
The following year, at the Convention of Kanagawa (March 31, 1854), Perry returned with seven ships and forced the Shogun to sign the "Treaty of Peace and Amity", establishing formal diplomatic relations between Japan and the United States. The United Kingdom signed the Anglo-Japanese Friendship Treaty at the end of 1854.
Between 1852 and 1855, Admiral Yevfimy Putyatin of the Russian Navy made several attempts to obtain from the Shogun favourable trade terms for Russia. In June 1853, he brought to Nagasaki Bay a letter from the Foreign Minister Karl Nesselrode and demonstrated to Hisashige Tanaka a steam engine, probably the first ever seen in Japan. His efforts culminated in the signing of the Treaty of Shimoda in February 1855.
Within five years, Japan had signed similar treaties with other western countries. The Harris Treaty was signed with the United States on July 29, 1858. These "Ansei Treaties" were widely regarded by Japanese intellectuals as unequal, having been forced on Japan through gunboat diplomacy, and as a sign of the West's desire to incorporate Japan into the imperialism that had been taking hold of the continent. Among other measures, they gave the Western nations unequivocal control of tariffs on imports and the right of extraterritoriality to all their visiting nationals. They would remain a sticking point in Japan's relations with the West up to the turn of the 19th to 20th century.
Missions to the West 
Several missions were sent abroad by the Bakufu, in order to learn about Western civilization, revise treaties, and delay the opening of cities and harbour to foreign trade.
In 1861 in the Tsushima Incident a Russian fleet tried to force open a harbour not officially opened to foreign trade with foreign countries, but was finally repelled with the help of the British.
See also 
- Hai jin (海禁) - Maritime restrictions; kaikin in Japanese.
- Paradise sakoku (パラダイス鎖国)
- Treaty of Kanagawa
- Dutch missions to Edo
- Joseon missions to Japan
- Ryukyuan missions to Edo
- Gunn, Geoffrey C, First globalization: the Eurasian exchange, 1500 to 1800, Google Books, p. 151
- Tashiro, Kazui. "Foreign Relations During the Edo Period: Sakoku Reexamined." Journal of Japanese Studies. Vol. 8, No. 2, Summer 1982.
- Toby, Ronald. State and Diplomacy in Early Modern Japan. Princeton: Princeton University Press, 1984
- Toby, Ronald (1977). "Reopening the Question of Sakoku: Diplomacy in the Legitimation of the Tokugawa Bakufu", Journal of Japanese Studies. Seattle: Society for Japanese Studies.
- Hellyer, Robert I. (2009). Defining engagement: Japan and global contexts, 1640-1868. Harvard University.
- Laver, Michael S. (2011). The Sakoku Edicts and the Politics of Tokugawa Hegemony. Cambria Press.
- Agence France-Presse (2009-01-31). "S. Korea president faces protests from Buddhists". The Straits Times. Retrieved 2009-01-31.
- "先島諸島火番盛" [Sakishima Beacons] (in Japanese). Agency for Cultural Affairs. Retrieved 11 June 2012.
- Hall, J (1955). Tanuma Okitsugu, 1719–1788, p. 105.
- Cullen, L.M. A History of Japan, 1582-1941. Cambridge: Cambridge University Press, 2003. p.39
- Islands and empires: Western impact on the Pacific and east Asia by Ernest Stanley Dodge p.302
- Ridley, Scott (2010). Morning of Fire: John Kendrick's Daring American Odyssey in the Pacific. HarperCollins. pp. 221–225. ISBN 978-0-06-170012-5. Retrieved 30 July 2012.
- K. Jack Bauer, A Maritime History of the United States: The Role of America's Seas and Waterways, University of South Carolina Press, 1988., p. 57
- Asia Society of Japan, Long lecture.
- Polak 2001, p.19
Further reading 
- Hall, John Wesley. (1955) Tanuma Okitsugu: Foreruner of Modern Japan. Cambridge: Harvard University Press.
- Oshima, Akihide. (2009) Sakoku to iu Gensetsu.（大島明秀『「鎖国」という言説』）Kyoto in Japan: Minerva Publisher.
- "Numismatist in Commodore Perry's fleet (1853–54)", Jornal of Antiques, August 5.