Using transcriptomic, lipidomic, and molecular-genetic analyses, we demonstrate that both lipases mediate infection-induced lipid remodeling but with distinct outcomes: lipl-1 promotes immunity, whereas, lipl-2 does not. This evidence concerns the gene LIPJ and infection.