In less than fifty years, as a result of this event, Japan went from being a small, isolated country to becoming one of the world's main powers. In 1854, Japan and the U.S. agreed to a treaty, which included provisions for trade and an American consulate.