SHM primarily occurs in the germinal centers of secondary lymphoid organs such as lymph nodes and the spleen. Within these germinal centers, B cells undergo proliferation, selection, and mutation processes. The microenvironment of the germinal center is essential for SHM, providing the necessary signals and support for B cell activation and differentiation.