Fusion in the solar core converts hydrogen into helium. Energy reaches the surface and radiates into space; a small portion reaches Earth and supports photosynthesis and climate.
The Sun is a main-sequence star with a lifetime measured in billions of years. Its output and future evolution matter when considering how long a planet can remain habitable.