During the Meiji Restoration, Japan's army and navy were trained by experts from Europe. They were , trained in European infantry techniques and armed with modern Western guns, defeated the last resistance of the traditional samurai warriors. Hope this answers the question. Have a nice day.