The Origins of Coffee: Kaldi the Goat Herder The first cup of coffee can be traced back to this folk tale and Kaldi: the man kept up at night by his restless goats.