The caffeine in coffee “beans” is a natural plant defense against herbivory, i.e., a toxic substance that protects the seeds of the plant. Fruits and leaves are both sources of caffeine as well and a tea can be made of the leaves, but neither are used commercially.
Follow Ultrafacts for more facts