 Following the Genpei War (1180–1185), a samurai regime was established in Kamakura. Religiously and philosophically, the Kamakura regime was far more eager to advance the development of Rinzai Zen Buddhism, for example, rather than the teachings of Confucius. While the latter had spread significantly during the peaceful years of aristocratic imperial rule, they suffered for centuries during the medieval period when warrior regimes preferred the arts of war as a means to power over the Confucian foundations of moral virtue and ritual refinement. The upheaval of the medieval period thus witnessed a relative eclipse of Confucianism as it came to be enveloped, at best, in a new syncretic cultural order, typically dominated by either one form of Buddhism or another as they responded to the social and personal suffering of the times.