The celebrated priest Gyoki (668–749) founded the temple Moro-oka-ji on the scenic Noto Peninsula overlooking the Sea of Japan. After serving as an Esoteric Buddhist temple, in 1321, it was entrusted to one of the two founders of Soto Zen, Keizan Zenji, who renamed it Shogakuzan Sojiji.