Somatic hypermutation and clonal selection lead to B cells expressing high-affinity antibodies. Here we show that somatic mutations not only play a critical role in antigen binding, they also affect the thermodynamic stability of the antibody molecule. Somatic mutations directly involved in antigen recognition by antibody 93F3, which binds a relatively small hapten, reduce the melting temperature compared with its germ-line precursor by up to 9 °C. The destabilizing effects of these mutations are compensated by additional somatic mutations located on surface loops distal to the antigen binding site. Similarly, somatic mutations enhance both the affinity and thermodynamic stability of antibody OKT3, which binds the large protein antigen CD3. Analysis of the crystal structures of 93F3 and OKT3 indicates that these somatic mutations modulate antibody stability primarily through the interface of the heavy and light chain variable domains. The historical view of antibody maturation has been that somatic hypermutation and subsequent clonal selection increase antigen–antibody specificity and binding energy. Our results suggest that this process also optimizes protein stability, and that many peripheral mutations that were considered to be neutral are required to offset deleterious effects of mutations that increase affinity. Thus, the immunological evolution of antibodies recapitulates on a much shorter timescale the natural evolution of enzymes in which function and thermodynamic stability are simultaneously enhanced through mutation and selection.