Here, we report the identification and characterization of a trans-Golgi network/early endosome (TGN/EE)-localized RLK that recognizes viral proteins and inhibits infection in rice. The gene discussed is TXK; the disease is infection.