Commodore Matthew Perry's 1853 expedition forced Japan to open to foreign trade. His fleet's show of strength in Tokyo Bay led to the Treaty of Kanagawa, granting the U.S. trading rights and opening Shimoda and Hakodate ports. An American consulate was also established.