Dimethyl itaconate induces long-term innate immune responses and confers protection against infection.