The bakufu (shogunate) obtained direct power over the higokenin (non-samurai retainers) as a result of the Mongol invasions of Japan however, there were many samurai who did not obey the bakufu.
文永の役という対外危機に伴い、幕府は非御家人への指揮権も得ることになったが、幕府に従わぬ武士も多かった。