# Star formation confusion

If gravity is really a weak force compared to other forces, then how does gravity pull hydrogen atoms in a nebula to from stars. I understand that hydrogen is in atomic or in the molecular state in star forming regions and electromagnetic repulsion does not negate gravity. But still, it's surprising that gravity can actually pull two molecular hydrogens together. I mean even at nanometer distances between molecules, the gravity will be in the order of $10^{-19}$. Can anyone shed light on this?