Although the sun is useful in providing solar energy, it is harmful to man. How is it harmful?

Fossil fuels such as oil and natural gas are non-renewable sources of energy. Solar energy is now considered the best alternative to replace fossil fuels.