Knowledge of three-dimensional structure is a key factor in protein engineering. It is useful, for example, in predicting and understanding the functional consequences of specific substitution of one or more amino acids of the polypeptide chain. It is also necessary for the design of new effectors or analogs of the substrates of enzymes and receptors. X-ray diffraction by crystals of the biomolecule was for a long time the only method of determining three-dimensional structures. In the last 5 years, it has been joined by a new technique, two-dimensional nuclear magnetic resonance (2D NMR), which can resolve the structure of middle-sized proteins (less than 10 kilodaltons). The technique is applied on solutions whose pH, ionic strength, and temperature can be chosen and changed. The two basic measurements, COSY and NOESY, detect respectively the systems of hydrogen nuclei, or protons, coupled through covalent bonds, and those in which the interproton distances are less than 0.5 nm. A systematic strategy leads from resonance assignments of the two-dimensional spectrum to molecular modeling with constraints and finally to the determination of the molecular structure in the solution. Much sophistication is needed even today for the first task, the assignment of the resonances. Each of the COSY and NOESY spectra is a two-dimensional map, where the diagonal line is the one-dimensional spectrum, and the off-diagonal peaks indicate connectives between protons. Peak assignment to a specific type of amino acid is based on the pattern of scalar couplings observed in the COSY spectrum. Next, the amino acids are positioned in the primary sequence, using the spatial proximities of polypeptide chain protons, as observed in the NOESY spectrum. The principal secondary structures (alpha helix, beta sheets, etc.) are then identified by their specific connectivities. The tertiary structure is detected by NOESY connectivities between protons of different amino acids which are far apart in the primary sequence. The distance constraints from the NOESY connectivities also provide the starting point for modeling the tertiary structure. This is then refined using distance geometry and molecular dynamics algorithms. The resolution of the structures obtained with the help of recent algorithmic developments may be comparable to that provided by X-ray diffraction. The COSY measurement can be completed or substituted by other measurements, useful albeit more complex. For example, the HOHAHA experiment, currently in wide use, gives the correlations through multiple covalent bonds. Multiquanta experiments, which select systems of a given number of coupled spins, provide spectral simplification.(ABSTRACT TRUNCATED AT 400 WORDS)