Here, Wang et al show that loss of TRIM29 and PERK inhibitor mitigate viral myocarditis by attenuating PERK-driven ER stress and ROS responses in male mice. This evidence concerns the gene TRIM29 and viral myocarditis.