The parallel evolution of caffeine synthesis in yerba mate and coffee led scientists to suspect it plays a crucial role in plant survival, potentially functioning as a defense mechanism.