Surveys of X-ray structures of Ca2+-containing and lanthanide ion-containing proteins and coordination complexes have been performed and structural features of the metal binding sites compared. A total of 515 structures of Ca2+-containing proteins were considered, although the final data set contained only 44 structures and 60 Ca2+ binding sites with a total of 323 ligands. Eighteen protein structures containing lanthanide ions were considered with a final data set containing eight structures and 11 metal binding sites. Structural features analysed include coordination numbers of the metal ions, the identity of their ligands, the denticity of carboxylate ligands, and the type of secondary structure from which the ligands are derived. Three general types of calcium binding site were identified in the final data set: class I sites supply the Ca2+ ligands from a continuous short sequence of amino acids; class II sites have one ligand supplied by a part of the amino acid sequence far removed from the main binding sequence; and class III sites are created by amino acids remote from one another in the sequence. The abundant EF-hand type of Ca2+ binding site was under-represented in the data set of structures analysed as far as its biological distribution is concerned, but was adequately represented for the chemical survey undertaken. A turn or loop structure was found to provide the bulk of the ligands to Ca2+, but helix and sheet secondary structures are slightly better providers of bidentate carboxylate ligation than turn or loop structures. The average coordination number for Ca2+ was 6.0, though for EF-hand sites it is 7. The average coordination number of a lanthanide ion in an intrinsic protein Ca2+ site was 7.2, but for the adventitious sites was only 4.4. A survey of the Cambridge Structural Database showed there are small-molecule lanthanide complexes with low coordination numbers but it is likely that water molecules, which do not appear in the electron density maps, are present for some lanthanide sites in proteins. A detailed comparison of the well-defined Ca2+ and lanthanide ion binding sites suggests that a reduction of hydrogen bonding associated with the ligating residues of the binding sites containing lanthanide ions may be a response to the additional positive charge of the lanthanide ion. Major structural differences between Ca2+ binding sites with weak and strong binding affinities were not obvious, a consequence of long-range electrostatic interactions and metal ion-induced protein conformational changes modulating affinities.