While the Sun is often referred to as a star, it's actually a star and not a planet. It's a massive ball of hot plasma, primarily composed of hydrogen and helium, that generates its own light and heat through nuclear fusion.
Let me know if you have any other questions about the Sun or other celestial objects!