In March 1854 Commodore Matthew C. Perry of the U.S. Navy concluded a peace and amity treaty with the Shogunate. Soon after this he visited Hakodate with his squadron of five ships. In Hakodate, Perry met with Matsumae Kageyu, the cheif retainer of the Matsumae clan and other officials at the house of Yamadaya Juhei, an influential merchant.
After looking around the city and surveying the harbor, they left Hakodate.
This illustration found in Perry’s “Expedition to Japan ( Nippon Enseiki ) ” shows what the meeting was like.