The coffee plant, Coffee arabica, originates in Ethiopia. According to legend, the 9th-century goat herder Kaldi discovered the coffee plant after noticing the energizing effect the plant had on his flock, but the story did not appear in writing until 1671 and is probably apocryphal.