As contrast with dependent Jōdō faith, Zen Buddhism attempts to be spiritually self-awakened by Zen meditation. Eisai learned the Rinzai sect in China. He gave pupils a difficult problem and he made them solve it, and so they would be enlightened by themselves. Rinzai Zen was supported widely by the upper samurai class in the Kamakura period. Dōgen learned the Sōtō sect in China. Oppose to Eisai, he preached enlightenment by earnest sitting meditation (zazen). Soto Zen was supported by the local samurais.