During the Meiji Era from 1868 to 1912, Japan underwent significant changes in leadership and modernized rapidly after opening up to Western influence. Commodore Perry's arrival in 1853 forced Japan to open to Western trade. After witnessing China become weak after unequal treaties following the Opium Wars, Japan resolved to modernize to avoid colonization. The Meiji Restoration overthrew the shogunate and restored the emperor to power, beginning reforms to adopt Western technology and culture while maintaining Japanese spirit. Japan industrialized, grew powerful militarily, and expanded its territory, setting the stage for future tensions with other world powers.