Tandem kinase proteins (TKPs) are key regulators of plant immunity. We found that RWT4, a wheat TKP, confers resistance to the fungal pathogen Magnaporthe oryzae by directly recognizing the effector AvrPWT4. Recognition of AvrPWT4 depends on the RWT4 N-terminal partial kinase duplication region, which is essential for pathogen perception and defense activation.