How does a satellite maintain its orbit in space?

As the satellite orbits a planet, its centripetal acceleration and the gravitational acceleration balance each other out to keep it in orbit. The height of its orbit depends on its speed.