A finding that a hydrophilic peptide significantly enhances the magnesium-content of calcite is especially meaningful for geologists because Mg-content in carbonates is used as a ‘paleo thermometer’. The findings also offer new insights for materials synthesis.