Stomata exert considerable effects on global carbon and water cycles by mediating gas exchange and water vapour1,2. Stomatal closure prevents water loss in response to dehydration and limits pathogen entry3,4. However, prolonged stomatal closure reduces photosynthesis and transpiration and creates aqueous apoplasts that promote colonization by pathogens. How plants dynamically regulate stomatal reopening in a changing climate is unclear. Here we show that the secreted peptides SMALL PHYTOCYTOKINES REGULATING DEFENSE AND WATER LOSS (SCREWs) and the cognate receptor kinase PLANT SCREW UNRESPONSIVE RECEPTOR (NUT) counter-regulate phytohormone abscisic acid (ABA)- and microbe-associated molecular pattern (MAMP)-induced stomatal closure. SCREWs sensed by NUT function as immunomodulatory phytocytokines and recruit SOMATIC EMBRYOGENESIS RECEPTOR-LIKE KINASE (SERK) co-receptors to relay immune signalling. SCREWs trigger the NUT-dependent phosphorylation of ABA INSENSITIVE 1 (ABI1) and ABI2, which leads to an increase in the activity of ABI phosphatases towards OPEN STOMATA 1 (OST1)—a key kinase that mediates ABA- and MAMP-induced stomatal closure5,6—and a reduction in the activity of S-type anion channels. After induction by dehydration and pathogen infection, SCREW–NUT signalling promotes apoplastic water loss and disrupts microorganism-rich aqueous habitats to limit pathogen colonization. The SCREW–NUT system is widely distributed across land plants, which suggests that it has an important role in preventing uncontrolled stomatal closure caused by abiotic and biotic stresses to optimize plant fitness. A plant endogenous peptide-receptor signaling pathway termed SCREW–NUT is described; it counteracts microbe-associated molecular pattern (MAMP)- and abscisic acid-induced stomatal closure to regulate the reopening of stomata after biotic and abiotic stresses.