The Sun, a G-type main-sequence star, accounts for 99.86% of the Solar System's mass. It provides the heat and light necessary for life on Earth and drives the solar wind, a stream of charged particles that affects the entire Solar System. The Sun’s gravitational pull keeps all the planets and other objects in their respective orbits.