The 'demon' aliens have repeatedly tried to destroy the planet, but the 'gods' introduce Magic into the world for the inhabitants to use against the 'demon' alien race.
In these situations, there is usually either a major natural disaster coming soon, an ongoing war or just in times of despair in society.