We found that lack of PTPN22 in mice resulted in viral clearance 30 days after infection, which was reflected in their reduced weight loss and overall improved health. Here, PTPN22 is linked to infection.