Is the sun a star or a planet?

The sun is not a planet but a star. It is not only the nearest and sole star in our solar system, it also happens to be its center.