IgM can prevent bacterial and fungal infections because it plays an important role in promoting mucosal tolerance and forming a healthy microecological environment in the intestine. This evidence concerns the gene CD40LG and fungal infectious disease.