The rice gene Xa21 conferring resistance to Xanthomonas oryzae pv. oryzae (Xoo), was isolated using a map-based cloning strategy. Compared with previously cloned genes, the structure of Xa21 represents a novel class of plant disease R genes encoding a putative receptor kinase (RK). This article proposes a model for the mode of action of Xa21 and summarizes our current knowledge of the modular basis of resistance in rice to bacterial leaf blight and blast.