The women who weren't sent away in the war to be a nurse stayed behind to keep the men's job's going. They worked in factories, in mines, on railroads, and other jobs that would be labeled as "mens work"
Commodore Matthew C. Perry
Perry was warmly received by Japanese officials who had acquiesced and prepared a treaty that fulfilled many of Fillmore's demands. The Treaty of Kanagawa ensured the protection of American property and opened the ports of Hakodate and Shimoda to trade.
He sent them so that the U.S. could get rid go rights to build the canal at lower rice.