The data presented in this manuscript reveal a new mechanism of dietary regulation of mucosal immunity in which metabolism of phytate-rich foods by commensal bacteria primes epithelial defense against infection via an HDAC3-STAT3 pathway. Here, STAT3 is linked to infection.