The sun is the ultimate source of most of the earth's energy.