Determining the manganese concentration in shells of freshwater bivalves provides a unique way to obtain information about climate and environmental changes during time-intervals that pre-date instrumental data records. This approach, however, relies on a thorough understanding of how manganese is incorporated into the shell material-a point that remained controversial so far. Here we clarify this issue, using state-of-the-art X-ray absorption and X-ray emission spectroscopy in combination with band structure calculations. We verify that in the shells of all studied species manganese is incorporated as high-spin Mn 2+, i.e. manganese always has the same valence as calcium. More importantly, the unique chemical sensitivity of valence-to-core X-ray emission enables us to show that manganese is always coordinated by a CO 3-octahedron. This, firstly, provides firm experimental evidence for manganese being primarily located in the inorganic carbonate. Secondly, it indicates that the structure of the aragonitic host is locally altered such that manganese attains an octahedral, calcitic coordination. This modification at the atomic level enables the bivalve to accommodate many orders of magnitude more manganese in its aragonitic shell than found in any non-biogenic aragonite. This outstanding feature is most likely facilitated through the non-classical crystallization pathway of bivalve shells.