How does the electromagnetic energy from the sun hitting Earth’s surface affect the climate of an area? Which one?

How does the electromagnetic energy from the sun hitting Earths surface affect the climate of an area Which one class=