Author(s) of this paper may load this reprint on their own web site or institutional repository provided that this cover page is retained. Republication of this article or its storage in electronic databases other than as specified above is not permitted without prior permission in writing from the IUCr.For further information see http://journals.iucr.org/services/authorrights.html Synchrotron radiation research is rapidly expanding with many new sources of radiation being created globally. Synchrotron radiation plays a leading role in pure science and in emerging technologies. The Journal of Synchrotron Radiation provides comprehensive coverage of the entire field of synchrotron radiation research including instrumentation, theory, computing and scientific applications in areas such as biology, nanoscience and materials science. Rapid publication ensures an up-to-date information resource for scientists and engineers in the field.Crystallography Journals Online is available from journals.iucr.org J. Synchrotron Rad. (2010 The mobility, bioavailability and toxicity of mercury in the environment strongly depend on the chemical species in which it is present in soil, sediments, water or air. In mining districts, differences in mobility and bioavailability of mercury mainly arise from the different type of mineralization and ore processing. In this work, synchrotron-based X-ray absorption near-edge spectroscopy (XANES) has been taken advantage of to study the speciation of mercury in geological samples from three of the largest European mercury mining districts: Almadé n (Spain), Idria (Slovenia) and Asturias (Spain). XANES has been complemented with a single extraction protocol for the determination of Hg mobility. Ore, calcines, dump material, soil, sediment and suspended particles from the three sites have been considered in the study. In the three sites, rather insoluble sulfide compounds (cinnabar and metacinnabar) were found to predominate. Minor amounts of more soluble mercury compounds (chlorides and sulfates) were also identified in some samples. Single extraction procedures have put forward a strong dependence of the mobility with the concentration of chlorides and sulfates. Differences in efficiency of roasting furnaces from the three sites have been found.