The sun gets a little bit hotter and colder every 11 years. This is called the 11-year sunspot cycle. The change is so small that scientists can barely measure how it affects the temperature of the Earth. If the sun was causing the Earth to warm up, it would warm both the surface and high up in the air. But the air in the upper stratosphere is actually getting colder, so scientists do not think changes in the sun have much effect. In addition, over hundreds of millions of years, the sun is slowly getting brighter. 