euhemerism

(noun)

noun

1. A belief attributing the origins of the gods to the deification of heroes after their deaths.