With no warfare since the early 17th century, samurai gradually lost their military function during the Tokugawa era (also called the Edo period).
What was another name for the Tokugawa era?
the Edo period