The sun radiates huge amounts of electromagnetic energy in all directions. Earth is only one small recipient of the sun's energy; the sun's rays extend far out into the solar system, illuminating all the other planets.