Using the nematode Caenorhabditis elegans as a model animal, we show that the EGL-44/TEAD transcription factor and its transcriptional activator YAP-1/YAP (Yes-associated protein) are activated when the intestinal barrier is disrupted by bacterial infections. Here, YAP1 is linked to bacterial infectious disease.