The greater the mass, the greater its gravity.
For example, of all of the bodies in the Solar System, the Sun has by far the greatest gravity because the Sun has by far the greatest mass.