The most common legend about the discovery of coffee is that it happened in the ninth century AD A goat herder in Ethiopia named khalil noticed that his goats became very active after they ate red berries from a leafy bush. He tried a few berries himself, and he was soon as overactive as his herd. Kalil told other people chewed the berries because they gave quick energy.