Hydration is known to affect molecular-recognition processes, such as those between proteins and ligands. Now, theoretical simulations provide thermodynamic insight into cavity–ligand binding, revealing how it is predominantly driven by the behaviour of the few surrounding water molecules.