Here the authors show in adult Drosophila enterocytes that ATF3 regulates the expression of Raw, a JNK antagonist, to control intestinal regeneration and barrier function in response to infection. The gene discussed is MAPK8; the disease is infection.