1. Electron pair repulsion
The shape of a molecule or ion depends on the electron pairs around the central atom. These pairs repel each other and spread out as far apart as possible to minimise repulsion. It is the electron pairs that repel, not the atoms.
A lone pair occupies more space around the central atom than a bonding pair, so its repulsion is stronger:
This squeezes bonding pairs closer together, so bond angles become smaller than the ideal angle.
