Nagasaki, the present capital of Nagasaki Prefecture, was opened to trade with the Portuguese in 1571, but became more famous during the Edo period when it was the only port at which Europeans were permitted to trade. Prior to 1854 when Japan signed its first treaty with the Western powers, Nagasaki’s Dutch traders provided almost all of the knowledge Japan had of the West.