Gravity is a fundamental force of nature, and it's what holds planets together and keeps them orbiting stars.
While the strength of gravity varies depending on the planet's mass and size, every planet in our solar system, and every planet discovered outside our solar system, has gravity.