When the Heian period (794–1185) began, in substitution for the "making a country safe thought", form of esoteric Buddhism collectively known as mikkyō became widespread. However, in the late noble era when pessimism was popular due to the "belief that Buddhism will decline during the latter days of this world", the Pure Land movements spread out encouraging anticipation of a "future life" as a means to cope with desperation over "life in this world". During the Kamakura period (1185–1333) when government dominated by the samurai class began, a “new” Buddhism for the newly-risen class (samurai) appears.