Analysis at 0.25 nm resolution of the crystal structures of lysozyme-Gd(III) and lysozyme-Gd(III)-N-acetyl-D-glucosamine (GlcNac), prepared by diffusion methods, show that there are two main binding positions for Gd(III), one of which is close to glutamic acid-35 and the other close to aspartic acid-52. The two sites are 0.36 nm part. There is no evidence for the weak binding of Gd(III) to any of the eight other carboxy groups of lysozyme. In the presence of Gd(III), the binding of GlcNac is similar to that observed for the binding of the beta-anomer in subsite C. There are numerous small conformational changes in the protein on binding (Gd(III) and the sugar, and these have been quantified to a first approximation by real-space refinement. These changes are similar in both structures, and involve, among other small movements, shifts of one of the disulphide bridges by up to 0.05 nm. The movement of residues 70--74 observed in the binary complex of lysozyme-GlcNac [Perkins, Johnson, Machin & Phillips (1978) Biochem. J. 173-617] is not observed in the ternary complex of lysozyme-Gd(III)-GlcNac. The nature of the lysozyme-Gd(III) complex is discussed in the light of evidence from other crystallographic studies and n.m.r. solution studies. Preliminary findings for a lysozyme-Gd(III) complex prepared by co-crystallization methods are reported.