Citrus canker, an epidemic quarantine disease caused by Xanthomonas axonopodis pv. citri, has brought a great damage in citrus production worldwide. Herein, a rice PRR (pattern recognition receptor) gene Xa21 together with GUS reporter gene and hygromycin phosphotransferase gene (HPT) was introduced into Anliucheng sweet orange (Citrus sinensis Osbeck) via Agrobacterium-mediated transformation of embryogenic callus. The transgenic calluses were screened on MT basal medium containing hygromycin (HYG) and detected by histochemical GUS staining. The transgenic plantlets were recovered through somatic embryogenesis pathway. The regenerated plantlets were accustomed to and maintained in the greenhouse. The transgene integration of recovered plantlets was identiifed by PCR and Southern blot hybridization. It showed that all the transgenic plantlets tested had undergone single copy integration, the expression of Xa21 in eight different transgenic lines detected by qRT-PCR can be divided into three grades, high for T5 and T6, middle for T4 and low for the rest. The tolerance to citrus canker disease of the three recovered transgenic lines T2, T4 and T6 was assessed by in vitro pin-puncture inoculation. The results showed that all the three transgenic lines conferred improved resistance to citrus canker bacterium infection and the T4 transgenic line displayed the highest resistance. The mechanism and feasibility of rice Xa21 in triggering innate immunity in citrus was brielfy discussed.