VSEPR and molecular shape

Electron domains around a central atom spread as far apart as possible, giving the electron geometry, and lone pairs then shape the molecule, so water is bent rather than linear.

From General Chemistry.