According to legend, coffee was discovered in the 9th century when an Ethiopian goat herder named Khaldi noticed that his normally lethargic goats were more excitable after they had nibbled the red berries from an evergreen tree. Khaldi took the berries to a Muslim holy man, who turned the raw fruit of the coffee tree into the delicious beverage.