Tripartite motif 21 (TRIM21), a member of the TRIM family, plays an important role in apoptosis, autophagy and ubiquitination in human, and has been proven to play antiviral roles in different organisms. In this study, the TRIM21 gene of Micropterus salmoides (MsTRIM21) was cloned, and it encoded 376 amino acids, which showed 89.3% similarity with Micropterus dolomieu and 38.3% with homo sapiens. Bioinformatics analysis revealed MsTRIM21 contained four domains: C4HC3-type RING-variant (RINGv), coiled coil, PRY and SPRY. The high expression level of MsTRIM21 could be detected in liver, stomach and muscle of healthy Micropterus salmoides, and it was significantly upregulated in head kidney, muscle, gill and brain and significantly down-regulated in the stomach of Micropterus salmoides infected with largemouth bass ulcer syndrome virus (LBUSV). The overexpression of MsTRIM21 could significantly inhibit the viral replication in vitro, evidenced by the reduction of CPE severity and the downregulation of the viral gene transcription. In addition, the overexpression of MsTRIM21 could significantly increase the expression level of interferon regulatory factor (IRF) 3, IRF7, myxovirus resistance 1 (Mx1), interferon stimulated gene 15 (ISG15), double-stranded RNA-activated protein kinase (PKR) and tumor necrosis factor α (TNF-α) in vitro, indicating the enhancement of innate immune response and inflammatory response, which may directly affect the replication of LBUSV. Thus, these results provide new lights on the roles of fish TRIM21 in innate immune response against iridovirus.