In this study, we selected six commonly used endogenous controls including 18S rRNA, ACTB, TUBA, UBCE, GAPDH and EF1A as candidate reference genes for normalizing the expression levels of immune-related gene IgM and analyzed their expression stabilities during vaccination and infection in tilapia. Here, CD40LG is linked to infection.