We intend to provide a consistent description of the even-even Hg isotopes, 172-200Hg, using the interacting boson model including configuration mixing. We pay special attention to the description of the shape of the nuclei and to its connection with the shape coexistence phenomenon.