Surface tension is the result of cohesive forces among liquid molecules. These forces are particularly strong at the surface of a liquid, where molecules do not have neighboring molecules on all sides.
As a result, the surface molecules experience a net inward force, leading to the minimization of surface area. This phenomenon gives rise to surface tension, which is responsible for effects like the formation of droplets and the ability of some insects to walk on water.
Gravitational pull, adhesive forces, or chemical reactions are not responsible for surface tension.