Plants use intracellular nucleotide-binding domain (NBD) and leucine-rich repeat (LRR)–containing immune receptors (NLRs) to detect pathogen-derived effector proteins. The Arabidopsis NLR pair RRS1-R/RPS4 confers disease resistance to different bacterial pathogens by perceiving the structurally distinct effectors AvrRps4 from Pseudomonas syringae pv. pisi and PopP2 from Ralstonia solanacearum via an integrated WRKY domain in RRS1-R. How the WRKY domain of RRS1 (RRS1WRKY) perceives distinct classes of effector to initiate an immune response is unknown. Here, we report the crystal structure of the in planta processed C-terminal domain of AvrRps4 (AvrRps4C) in complex with RRS1WRKY. Perception of AvrRps4C by RRS1WRKY is mediated by the β2-β3 segment of RRS1WRKY that binds an electronegative patch on the surface of AvrRps4C. Structure-based mutations that disrupt AvrRps4C–RRS1WRKY interactions in vitro compromise RRS1/RPS4-dependent immune responses. We also show that AvrRps4C can associate with the WRKY domain of the related but distinct RRS1B/RPS4B NLR pair, and the DNA-binding domain of AtWRKY41, with similar binding affinities and how effector binding interferes with WRKY–W-box DNA interactions. This work demonstrates how integrated domains in plant NLRs can directly bind structurally distinct effectors to initiate immunity.