In somatic hypermutation, AID introduces point mutations into the variable regions of immunoglobulin genes. These mutations occur at a high rate and are essential for the affinity maturation of antibodies. B cells expressing higher-affinity antibodies are selected for survival, leading to a more effective immune response.