During the Meiji Restoration, Japan underwent rapid modernization that transformed its military and government. The traditional samurai class lost its role as new systems replaced old structures.