The Earth is an example of a planet and orbits the sun, which is a star. A star is usually defined as a body of gas which is large enough and dense enough that the heat and crushing pressure at its center produces nuclear fusion. This is a fancy way of saying that it glows or burns, like our sun