Chemical pesticides are still frequently overused to diminish such crop loss caused by biotic stress despite the threat to humans and the environment. Thus, it is urgent to find safer and more effective defense strategies. In this study, we report that caffeine, implanted through a transgenic approach, enhances resistance against variable biotic stresses in rice without fitness cost. Caffeine-producing rice (CPR) was generated by introducing three N-methyltransferase genes involved in the biosynthesis of caffeine in coffee plants. The CPR plants have no differences in morphology and growth compared to their wild-type counterparts, but they show strongly enhanced resistance to both bacterial leaf blight, rice blast, and attack of white-backed planthoppers. Caffeine acts as a repellent agent against the rice pathogens. Moreover, caffeine triggers a series of Ca2+ signaling-like processes to synthesize salicylic acid (SA), a hormone associated with plant resistance. In CPR, phosphodiesterase was inhibited by caffeine, cAMP and cGMP increased, intracellular Ca2+ increased, PAL (phenylalanine lyase) was activated by OsCPK1, and SA synthesis was activated. This finding is a novel strategy to improve resistance against the biotic stresses of crops with a special type of defense inducer. This article is protected by copyright. All rights reserved.