Answer
The expedition to Japan, led by Commodore Matthew Perry, took place during the presidency of Millard Fillmore, who served from 1850 to 1853. Fillmore's administration oversaw several significant events, including the admission of California as a free state, the passage of the Compromise of 1850, and the Gadsden Purchase, which expanded the United States' territory in the Southwest.