I'll show you videos of a local festival in Taketomi island, which has a long history dedicated to the God of a local Shinto shrine. You can see many dancers dressed up as samurai warriors and ancient farmers. Most of old festivals in Japan are held to pray for bumper harvest including the festival in Taketomi island.
The 1st dance by samurai warriors
The dance by female dancers dressed up as ancient farmer.
The dance by female oracles.