The sun is the primary source of energy for the weather system. The sun's heat causes the air to rise, which creates winds. The winds carry heat and moisture around the globe, which causes the weather to change.