Based on the analysis of some immunoglobulin V-gene sequences, somatic mutations are assumed to occur by correction of complementary violations in heteroduplexes formed by direct or inverted repeats. Correlation between somatic mutations and repeats is investigated by a statistical weights method in 323 somatic substitutions in 14 V-genes. Assuming absence of correlation, the probability of observing data in the sample would be very low (0.00004). This result supports the idea that somatic mutations may arise from heteroduplex repair. The high frequency of these mutations in complementarity-determining regions (CDRs) of V-genes may be due to a high concentration of repeats in these regions. Analysis of somatic substitutions has revealed that stabilizing selection seems to provide conservation of framework regions (FRs) (which leads to preservation of the protein's three-dimensional structure). Positive selection may be provided by B-lymphocyte proliferation with large changes in CDRs.