From 1603-1854, Japan was a closed country. No one could leave the country, and foreigners were limited to a small port near Hiroshima. So when the American naval officer Matthew C. Perry forced Japan to open to trade and diplomacy with the outside world, the country was two hundred years behind the rest of the world economically, technologically, and militarily. Over the next forty to fifty years, however, Japan transformed itself from a feudal society governed by an outdated warrior class to a regional power.