Stars are born in thick clouds of gas. The gravity generated by the cloud's own mass squeezes inward until the pressure in the center becomes so high that hydrogen atoms are fused together. The energy produced by fusion pushes back and keeps gravity from crushing the star out of existence.

When fusion turns on deep inside a cloud, a star is born, and then for awhile at least, gravity and pressure are precariously balanced.