Polarity and hydrogen bonds
Oxygen pulls the electrons it shares with hydrogen harder, so water has slightly charged ends and its molecules hold their neighbours by hydrogen bonds, which is what makes water cohesive and adhesive and gives it surface tension.
From AP Biology.