International audienceWe present results obtained from high energy-resolution L3-edge XANES spectroscopy and first-principles calculations for the structure, bonding, and stability of mercury-(II) complexes with thiolate and thioether ligands in crystalline compounds, aqueous solution, and macromolecular naturalorganic matter (NOM). Core-to-valence XANES features that vary in intensity differentiate with unprecedented sensitivity the number and identity of Hg ligands and the geometry of the ligand environment. Post-Hartree−Fock XANES calculations, coupled with natural population analysis, performed on MP2-optimized Hg[(SR)2···(RSR)n] complexes show that the shape, position, and number of electronic transitions observed at high energy-resolu...