About 800 years ago, Japan was in crisis.Bcrisis.Because Yuan dynasty in China tried to invade Japan twice.
At that time the ruler of Yuan was Mongolian so we call those incidents Mongolian invasions.
Then we had great leader of samurai.
His name was Hojo Tokimune.
He decided to refuse demands of Yuan and fight against them.
So he ordered samurai to fight against Yuan and made many people to build stone walls along Hakata bay.
Even now we can see remains of walls in Fukuoka prefecture.
Samurai fought against Mongolian and typhoon came so Mongolians couldn't ocupay Japan.
That wind is called Kamikaze, the Divine wind.
After the menath of Mongolian was over, Tokimune past away as if his role was over too.
Now his spirit is in Engakuji temple where he built in Kamakura.
He ordered to build this temple to ease souls of dead samurai and Mongolian soldiers
Both of them in those fights.
https://gowithguide.com/japan/tour/kamakura-kamakura-holi-4645