Haemoglobins have the ability to discriminate between oxygen and other diatomic molecules. To further understanding of this process the X-ray crystal structures of carbonmonoxy and nitrosyl-leghaemoglobin have been determined at 1.8 A resolution. The ligand geometry is discussed in detail and the controversial issue of bent versus linear carbon monoxide binding is addressed. The bond angle of 160 degrees for CO-leghaemoglobin is in conflict with recent spectroscopy results on myoglobin but is consistent with angles obtained for myoglobin X-ray crystal structures. In contrast to the numerous carbon monoxide studies, very little stereochemical information is available for the nitric oxide adduct of haemoglobin. This is provided by the X-ray structure of NO-leghaemoglobin, which conforms to expected geometry with an Fe-NO angle of 147 degrees and a lengthened iron-proximal histidine bond. Thus crystallographic evidence is given for the predicted weakening of this bond on the binding of nitric oxide.