Question: how is earth atmosphere affected by solar energy?
Answer: Because sunlight creates ions at that altitude, that layer of the atmosphere is called the ionosphere. Sunlight affects the Earth's atmosphere, but a side-effect is that the atmosphere absorbs this dangerous ultraviolet radiation.