SummaryUsing genetic resistance against bacterial blight (BB) caused byXanthomonas oryzaepathovaroryzae(Xoo) is a major objective in rice breeding programmes. Prime editing (PE) has the potential to create novel germplasm againstXoo. Here, we use an improved prime‐editing system to implement two new strategies for BB resistance. Knock‐in of TAL effector binding elements (EBE) derived from the BB susceptible geneSWEET14into the promoter of a dysfunctional executorRgenexa23reaches 47.2% with desired edits including biallelic editing at 18% in T0generation that enables an inducible TALE‐dependent BB resistance. Editing the transcription factor TFIIA geneTFIIAγ5required for TAL effector‐dependent BB susceptibility recapitulates the resistance ofxa5at an editing efficiency of 88.5% with biallelic editing rate of 30% in T0generation. The engineered loci provided resistance against multipleXoostrains in T1generation. Whole‐genome sequencing detected noOsMLH1dn‐associated random mutations and no off‐target editing demonstrating high specificity of this PE system. This is the first‐ever report to use PE system to engineer resistance against biotic stress and to demonstrate knock‐in of 30‐nucleotides cis‐regulatory element at high efficiency. The new strategies hold promises to fend rice off the evolvingXoostrains and protect it from epidemics.