Tripartite motif-containing protein 21 (TRIM21) is involved in signal transduction and antiviral responses through the ubiquitination of protein targets. TRIM21 was reported to be related to the imbalance of host cell homeostasis caused by viral infection. Our studies indicated that H5N1 highly pathogenic avian influenza virus (HPAIV) infection up-regulated TRIM21 expression in A549 cells. Western blot and qPCR results showed that knockdown of TRIM21 alleviated oxidative stress and ferroptosis induced by H5N1 HPAIV and promoted the activation of antioxidant pathways. Co-IP results showed that TRIM21 promoted oxidative stress and ferroptosis by regulating the SQSTM1-NRF2-KEAP1 axis by increasing SQSTM1 K63-linked polyubiquitination under the condition of HPAIV infection. In addition, TRIM21 attenuated the inhibitory effect of antioxidant NAC on HPAIV titers and enhanced the promoting effect of ferroptosis agonist Erastin on HPAIV titers. Our findings provide new insight into the role of TRIM21 in oxidative stress and ferroptosis induced by viral infection.