The sun is a star located at the center of our solar system. It is a massive ball of glowing gases, primarily hydrogen and helium. The sun provides the necessary light and warmth that sustains life on Earth. It is approximately 93 million miles away from our planet and has a diameter of about 864,000 miles. The energy produced by the sun is a result of nuclear fusion, which occurs in its core.