Recent research on plant responses to bacterial attack has identified extracellular and intracellular host receptors that recognize conserved pathogen-associated molecular patterns and more specialized virulence proteins, respectively. These findings have shed light on our understanding of the molecular mechanisms by which bacteria elicit host defences and how pathogens have evolved to evade or suppress these defences.