Zen originated in China.
 It became dominant during the Song Dynasty, when Chn was the dominant form of Buddhism in China, due to support from the Imperial Court
In Chinese Chan, the usage of esoteric mantras in Zen goes back to the Tang dynasty

