Mongol invasions of Japan
After the destruction of the Mongol invaders, Japan's independence was guaranteed.  A power struggle within Japan led to the growth of military governments and less Imperial power.