According to Universe Today, the surface gravity of the sun is 27.94 g, about 27.9 times stronger than the surface gravity of the Earth. The more mass an object has, the larger its gravitational pull. Since the sun is such a huge mass that makes up 99.86% of the mass of the Solar System and has a mass over 330,000 times that of Earth, it has a lot of gravity.
The sun's gravitational pull is so strong that it makes the planets orbit around it. It even influences the ocean's tides on Earth, though the moon has a greater influence on the Earth's tides since it's closer. The strong gravity of the sun extends an influence well beyond the distant orbit of the dwarf-planet Pluto.
It is well known that the heat on the sun makes life there impossible, as the surface temperature is 10,000 degrees Fahrenheit or 5,500 degrees Celsius; the gravitational pull is so strong it would also be deadly.
The sun doesn't have a solid surface. It is made up of gases, mostly hydrogen (92.1 percent) and helium (7.8 percent). The gases are held together by the sun's own gravity, which are pulled into an almost perfect sphere.