Hello,
Here is your answer:
The proper answer to this question is that the sun shoots violent radiation waves at the heart and the ozone layer protects it but absorbing so it heats the Earth!
If you need anymore help feel free to ask me!
Hope is helps!