The rice immune receptor XA21 confers resistance to Xanthomonas oryzae pv. oryzae (Xoo), and upon recognition of the RaxX21-sY peptide produced by Xoo, XA21 activates the plant immune response. Here we screened 21 000 mutant plants expressing XA21 to identify components involved in this response, and reported here the identification of a rice mutant, sxi4, which is susceptible to Xoo. The sxi4 mutant carries a 32-kb translocation from chromosome 3 onto chromosome 7 and displays an elevated level of DCL2a transcript, encoding a Dicer-like protein. Silencing of DCL2a in the sxi4 genetic background restores resistance to Xoo. RaxX21-sY peptide-treated leaves of sxi4 retain the hallmarks of XA21-mediated immune response. However, WRKY45-1, a known negative regulator of rice resistance to Xoo, is induced in the sxi4 mutant in response to RaxX21-sY peptide treatment. A CRISPR knockout of a short interfering RNA (TE-siRNA815) in the intron of WRKY45-1 restores the resistance phenotype in sxi4. These results suggest a model where DCL2a accumulation negatively regulates XA21-mediated immunity by altering the processing of TE-siRNA815.