Ig class switch recombination (CSR) and somatic hypermutation serve to diversify antibody responses and are orchestrated by the activity of activation-induced cytidine deaminase and many proteins involved in DNA repair and genome surveillance. Msh5, a gene encoded in the central MHC class III region, and its obligate heterodimerization partner Msh4 have a critical role in regulating meiotic homologous recombination and have not been implicated in CSR. Here, we show that MRL/lpr mice carrying a congenic H-2(b/b) MHC interval exhibit several abnormalities regarding CSR, including a profound deficiency of IgG3 in most mice and long microhomologies at Ig switch (S) joints. We found that Msh5 is expressed at low levels on the H-2(b) haplotype and, importantly, a similar long S joint microhomology phenotype was observed in both Msh5 and Msh4-null mice. We also present evidence that genetic variation in MSH5 is associated with IgA deficiency and common variable immune deficiency (CVID) in humans. One of the human MSH5 alleles identified contains two nonsynonymous polymorphisms, and the variant protein encoded by this allele shows impaired binding to MSH4. Similar to the mice, Ig S joints from CVID and IgA deficiency patients carrying disease-associated MSH5 alleles show increased donor/acceptor microhomology, involving pentameric DNA repeat sequences and lower mutation rates than controls. Our findings suggest that Msh4/5 heterodimers contribute to CSR and support a model whereby Msh4/5 promotes the resolution of DNA breaks with low or no terminal microhomology by a classical nonhomologous end-joining mechanism while possibly suppressing an alternative microhomology-mediated pathway.