Throwing roasted soybeans was first practiced back in the Heian period, to stop oni from attacking villages by throwing beans at their eyes.
The term oni refers to an invisible negative vibes called jaki in Japanese.
To get rid of the oni, people scatter roasted soy beans both inside and outside of their houses.
The phrase “Out with the devil! In with good fortune,” is said when throwing soybeans.