You have heard this one. An Ethiopian goatherd called Kaldi notices his goats leaping about after eating the red berries of a particular shrub, tries them himself, and coffee enters the world. It is on café walls, in roasters' about-pages, and in the opening paragraph of a great many coffee books.
Its first appearance in print was Rome, 1671, in a coffee treatise written by Antonio Fausto Naironi, a Levantine Maronite who had settled in the city. Coffee had by then been drunk, traded and argued over in law in Yemen for more than two hundred years. It is folklore with a firm publication date, and the date is the interesting fact, not the goats.
What the record actually shows
The earliest coffee history we can stand on comes from a manuscript written around 1556 by Abd al-Qadir al-Jaziri. It is the principal surviving source on how coffee spread through the Islamic world, and almost nobody outside academic coffee history can name it.
What it describes is not a discovery in a field. It is an adoption inside a religious practice. Coffee entered ritual use among Yemeni Sufi communities for dhikr, all-night devotions performed by men who had ordinary daytime jobs and needed to stay awake through them. The etymology of qahwa points at a lessening of appetite or desire, which in that context plainly means desire for sleep.
The first person we can attach to coffee with a date is Muhammad al-Dhabani, a Sufi mufti of Aden who died in 1470. A man with a recorded death date is a different order of evidence from a goatherd with none.
And the earliest form of the drink was not made from the bean at all. The Sufi qahwa was originally brewed from kafta, the leaves of the khat plant. The coffee bean came in as a substitute because khat was not reliably available in Aden. Coffee got the job because it was the cheaper, more available replacement for something else.
That is a distinctly unromantic origin, and it is a much better one.
Why the story survives anyway
Two things keep Kaldi alive, and neither is evidence.
The first is that it is well built. A single observer, an animal that behaves oddly, a taste test, a discovery. It has the shape of something you can retell after hearing it once, which is precisely what folklore is optimised for.
The second is that it has two mutually exclusive endings, and both are still in circulation. In one, a local imam takes the berries and brews them to keep his students awake through prayers. In the other, the imam throws them into the fire in disgust, and it is the smell of the beans roasting that converts him. A story with two contradictory endings, both told with confidence, is not a record of an event. It is a story doing a job.
Kaldi is also not the only candidate. Ukers, writing in 1922, gives a competing legend: Sheik Omar of Mocha, exiled around 1258, starving, saved by bitter berries he could not soften, who drank the brown water they produced and was later made a saint. Two origin legends, each supplying coffee with a sanctioned religious discoverer, is evidence about a need rather than about an event. Somebody wanted coffee to have a blessed beginning, and more than one somebody obliged.
The part where the sources visibly disagree
Watch one man's name move between two books written ninety-seven years apart.
Morris, working in 2019 with footnotes to the scholarship, presents al-Dhabani, dated to a death in 1470, encountering the drink in Ethiopia and adopting it after an illness. Ukers, in 1922, gives us Gemaleddin, mufti of Aden, at around 1454. These are recognisably the same tradition, differently named and differently dated.
There is a second internal disagreement inside al-Jaziri's own manuscript. One account credits al-Dhabani. Another says Ali ibn 'Umar al-Shadhili is celebrated in Mocha as the father of qahwa, but that his version was the khat drink, with al-Dhabani making the substitution later.
The honest summary is that coffee's adoption is documented in a sixteenth-century manuscript which does not fully agree with itself. That is a normal state for a fifteenth-century event and it is far more informative than a clean answer would be. The disagreement tells you the practice was already widespread enough by 1556 that its beginning had become contested.
Why any of this matters to somebody buying coffee
It matters because the same instinct that produced Kaldi is still operating, and you meet it on packaging.
A story about a single farm, a single family, a discovery, a heritage, is doing exactly what the goatherd does: giving a commodity a human beginning that makes it feel knowable. Sometimes that story is true and documented. Often it is a marketing department's version of Naironi, written in Rome, about somewhere else, a long time after the fact.
The test is the same one that separates al-Jaziri from Kaldi. Is there a date? Is there a named person? Is there a document that could be wrong and can be checked? A bag that names a producer, a region, a variety and a harvest year is making a checkable claim. A bag that tells you about ancient wisdom is telling you a story about a goatherd.
What this article will not do
It will not tell you Kaldi definitely never existed. Folklore sometimes preserves a real event badly, and a story first printed in 1671 could in principle carry an older oral tradition from Ethiopia, where coffee genuinely is native and where the plant was used in ways Europe knew nothing about. Ethiopian Oromo food practice includes kuti, a tea from the young leaves, hoja, dried skins with cow's milk, and bunna qela, beans roasted with butter and salt as a solid travel food. Coffee's Ethiopian history is real and deep. Kaldi is simply not evidence for it.
It also will not settle who drank the first cup, because that is not a question the sources can answer. Anyone who tells you they know is selling something, and quite often it is coffee.
The version worth repeating
If you want a coffee origin story that is both true and better, use this one.
Coffee began as a stimulant for religious men who needed to stay awake, in Yemen, in the fifteenth century. It was the second choice, adopted because the first choice was hard to get. Its earliest traded form was not even the bean but qishr, an infusion of the dried cherry husks with spices, which predates bean-brewing as a commercial product and which is coming back today under the name cascara.
Two centuries later a man in Rome printed a story about goats, and that is the one everybody remembers.
The goats are more fun. The Sufis are more interesting, and they have dates.
