Here, we demonstrated that the palmitoylation of MAVS at cysteine 79 (C79), which is catalyzed mainly by the palmitoyl S-acyltransferase ZDHHC12, was essential for MAVS aggregation and antiviral innate immunity upon viral infection in macrophages. Here, ZDHHC12 is linked to viral infectious disease.