All the demigods are material representations of the Supreme Lord
As long as one is in the modes of material nature and is performing
the duties prescribed in the scriptures, he can be elevated to higher
planetary systems, where the predominating deities are material
representations of the Supreme Personality of Godhead, like the sun-god,
the moon-god, the air-god, Brahma and Lord Siva. All the different
demigods are material representations of the Supreme Lord. By material
activities one can approach only such demigods, as stated in Bhagavadgita
(9.25). Yanti deva-vrata devan: those who are attached to the
demigods and who perform the prescribed duties can approach the abodes of
the demigods.
Srimad Bhagavatam 3.32.36 purport