The samurai, Japan’s warrior class for centuries, held significant influence over the nation’s politics, culture, and military. However, during the Meiji Restoration in the late 19th century, Japan underwent profound transformations. The new government sought to modernize the country by adopting Western political, military, and economic systems. This modernization led to the decline of the samurai class, as their traditional roles became obsolete in the rapidly changing society. (britannica.com)