The NMR chemical shifts of certain atomic nuclei in proteins (H-1(alpha), C-13(alpha), and C-13(beta)) depend sensitively on whether or not the amino acid residue is part of a secondary structure (alpha-helix, beta-sheet), and if so, whether it is helix or sheet. The physical origin of the different chemical shifts of atomic nuclei in alpha-helices versus beta-sheets is a problem of long standing. We report that the chemical shift contributions arising from secondary structure (secondary structure shifts) depend strongly on the extent of exposure to solvent. This behavior is observed for H-1(alpha), C-13(alpha), and C-13(beta) (sheet), but not for C-13(beta) (helix), whose secondary structure shifts are small. When random coil values are subtracted from the chemical shifts of all H-1(alpha) nuclei (Pro residues excluded) and the residual chemical shifts are summed to plot the mean values against solvent exposure, the results give a funnel-shaped curve that approaches a small value at full-solvent exposure. When chemical shifts are plotted instead against E-local, the electrostatic contribution to conformational energy produced by local dipole-dipole interactions, a well characterized dependence of H-1(alpha) chemical shifts on Elocal is found. The slope of this plot varies with both the type of amino acid and the extent of solvent exposure. These results indicate that secondary structure shifts are produced chiefly by the electric field of the protein, which is screened by water dipoles at residues in contact with solvent.