The coming of the black ships — the Perry expedition of 1853-1854 — was the American show of force that broke Japan's policy of national seclusion. The Edo shogunate had sealed the country since the seventeenth century, leaving Nagasaki alone for trade with the Dutch and Chinese; the United States, wanting Pacific routes and coaling and supply stations for its whalers, had sent envoys to demand ports without result, and news of the Qing's defeat in the Opium War had left the bakufu in dread. In July 1853 Commodore Matthew Perry steamed into Uraga at the head of Edo Bay with four warships, two of them steam frigates, delivered the president's letter demanding open ports, and fixed an answer for the following year; in February 1854 he returned with seven ships, the shogunate had no means to resist, and in March the Treaty of Peace and Amity (Kanagawa) was signed, opening Shimoda and Hakodate, with Britain, Russia and Holland winning the same rights in train — the seclusion system was at an end. Opening the ports shook prices and fed the 'revere the emperor, expel the barbarian' current; the bakufu's prestige broke, and the ground was prepared for the Meiji Restoration.