Immunoglobulin M (IgM) is the primary antibody in fish, which is transported from epithelial cells into the external secretion system by polymeric immunoglobulin receptor (pIgR). In this study, the full length of IgM and pIgR complementary DNA sequences from leopard coral grouper (Plectropomus leopardus) was characterized, and their expression levels under Vibrio harveyi infection were studied. cDNA sequence analysis showed that the pl-IgM heavy chain cDNA contained an open reading frame (ORF) of 1797 bp encoding a polypeptide of 597 amino acids consisting of a signal peptide, a variable region, and 4 constant regions. pl-pIgR (1041 bp) encodes 346 amino acids with 2 Ig-like domains (ILDs). The expression levels of pl-IgM and pl-pIgR in healthy fish were mainly in the intestine and spleen of fish, which indicates the relationship between the mucosal-associated lymphoid tissue and system lymphoid tissue. Messenger RNA (mRNA) expression profiles of pl-IgM and pl-pIgR were significantly increased in the intestine, head kidney, spleen, and liver after V. harveyi infection. The cDNA sequences of two ILDs were cloned and expressed in Escherichia coli BL21 (DE3). The recombinant pl-pIgR protein had antibacterial function against V. harveyi and Vibrio alginolyticus at 200 ng/μl. Our results indicate that pl-IgM and pl-pIgR are involved in the mucosal-associated immune and systemic immune response in the antibacterial immunity of leopard coral grouper.