Origins and early spread of coffee
Coffee's origins sit at the intersection of botany and legend. Wild Coffea arabica plants are native to Ethiopia, where the Oromo people likely consumed the plant in food form — most famously as bunna qela, a paste of roasted beans, butter, and salt — long before anyone brewed a drink. The earliest confirmed evidence of coffee as a beverage, however, comes from 15th-century Yemen, where Sufi communities in the highland districts of Haraz and Bani Matar cultivated the plant on terraced slopes and prepared a roasted-bean infusion to sustain concentration during night prayers. A 2020 genetic study definitively confirmed that the vast majority of the world's cultivated Arabica varieties descend from plants domesticated in Yemen rather than from the Ethiopian wild population. Yemen's port of Mocha became so synonymous with the trade that the word entered the language as a byword for the beverage itself.
The legendary accounts of discovery are vivid but historically thin. The most famous involves a goatherd named Kaldi — Ethiopian or Arab depending on the telling — whose flock grew lively after nibbling red berries; he brought them to a monk who threw them into a fire, releasing an irresistible aroma that led to the first brewed cup. The story does not appear in any source before 1671, when the Maronite scholar Antoine Faustus Nairon set it down in print, and the name "Kaldi" seems to have been invented in the twentieth century. A parallel legend credits a Moroccan Sufi mystic, Ghothul Akbar Nooruddin Abu al-Hasan al-Shadhili, or his disciple Omar — exiled near Mocha and revived by boiling bitter berries — with the discovery. These accounts are best read as cultural myths that reflect coffee's deep association with Sufi piety rather than as history.
From Yemen into the Islamic world
Abd al-Qadir al-Jaziri's 1587 manuscript Umdat al Safwa fi hill al-qahwa traces the beverage's northward march: from Arabia Felix (Yemen) to Mecca and Medina, then to Cairo, Damascus, Baghdad, and Constantinople. He records that Sheikh Jamal-al-Din al-Dhabhani, mufti of Aden, first adopted coffee around 1454, praising it for driving away fatigue and bringing "sprightliness and vigour." The Shadhiliyya Sufi order in Al-Mokha is specifically credited in Islamic tradition with first brewing coffee from roasted beans — sometime in the late 1300s or early 1400s — after a shaykh returned from a sojourn in Ethiopia. Members adopted it because it enhanced their state of mind during dhikr, the meditative recitation of God's names. The Arabic word qahwa, which originally referred to a broader class of brewed beverages on the Arabian Peninsula, gradually became specific to coffee as the drink spread, and from it derived nearly every word for coffee in the world: kahve, café, kopi, Kaffee, caffè, and the English "coffee" itself.
By 1414 the plant was known in Mecca; by the early 1500s it had reached the Mamluk Sultanate of Egypt and spread through the Safavid and Ottoman empires. A Cairene historian of the 16th century records that news arrived in Egypt of a drink called qahwa spreading in Yemen among Sufi shaykhs and others seeking to stay awake during devotional exercises. Coffee's association with Sufism gave it spiritual legitimacy even as it provoked legal controversy — it was banned in Mecca in 1511 for its stimulating effects, a decree overturned in 1524 by Ottoman Sultan Suleiman I, whose Grand Mufti issued a fatwa permitting consumption. A similar ban in Cairo in 1532 met the same fate. The halal/haram debate turned partly on whether coffee's cognitive effect was analogous to alcohol, an argument that ultimately failed: coffee clearly did not intoxicate, and muftis eventually ruled that since it did not become fully carbonized in roasting, it was lawful. By the early 1600s, coffee was known from Morocco to India. See Coffeehouse as social institution for how the beverage anchored public life in Islamic cities.
Into Europe
Coffee entered Europe along two routes: through Ottoman military contact (it reached Hungary and Vienna during the campaigns of 1526–1529) and through Mediterranean trade, especially via Venice, whose merchants imported it from North Africa and Egypt. European travelers through Ottoman lands were among the earliest to record coffee for European eyes: the German botanist and physician Leonhart Rauwolf, who traveled the Near East between 1573 and 1575, was the first to mention it in print (his account published 1582). George Sandys, visiting Istanbul in the early 17th century, described men sipping "a drink called coffee, in little china dishes, as hot as they can suffer it: black as soote" and noting its alleged digestive benefits. Pietro della Valle, the Italian traveler, boasted of being the first to bring coffee beans to Europe.
The Venetian botanist-physician Prospero Alpini published the first European botanical description of the coffee plant in 1591. The first European coffeehouse outside Ottoman territory and Malta opened in Venice in 1645. In England, the first coffeehouse opened in Oxford around 1651, and London's first followed in 1652, opened by the Levant trader Daniel Edwards and run by his Greek servant Pasqua Rosee; by 1675 more than 3,000 coffeehouses operated across England. Coffee's entry into France was accelerated in 1669 when Suleiman Agha, Ottoman ambassador to Louis XIV, introduced it at the royal court. Pope Clement VIII's reported blessing of coffee — allegedly declaring "this Satan's drink is so delicious it would be a pity to let the infidels have exclusive use of it" — helped defuse clerical suspicion in Catholic Europe, though whether the story is true is uncertain. Coffee arrived in Vienna and Paris through Armenian merchants well before the famous 1683 Ottoman siege, despite the popular story that Viennese café culture was born from coffee sacks the retreating Turkish army left behind.
Into Asia and the smuggling of seeds
Yemen jealously guarded its monopoly on living coffee plants, roasting or parboiling beans before export to prevent germination. The Dutch broke that monopoly in 1616 when the merchant Pieter van den Broecke obtained coffee bushes from Mocha and established them in Amsterdam's botanical garden. From that stock, the Dutch launched commercial cultivation in Ceylon (Sri Lanka) in 1658 and then concentrated on Java, making "Java coffee" a byword for the beverage. The Indian tradition traces to Baba Budan, a Sufi pilgrim who smuggled seven beans from Mecca to Karnataka around 1670, planting them in the hills now called Baba Budan Giri — the seed of South India's coffee industry. Coffee reached Japan via Dutch traders in the 17th century, remaining a curiosity until trade restrictions lifted in 1858.
Into the Americas
Gabriel de Clieu brought coffee seedlings from France to Martinique in 1720, sharing his water ration with the plants during a difficult crossing. From that single introduction, 18,680 coffee trees covered Martinique within fifty years, and the plant spread to Saint-Domingue, Mexico, and across the Caribbean. By 1788, Saint-Domingue alone supplied half the world's coffee. Brazil's coffee history began in 1727 when Francisco de Melo Palheta smuggled seeds from French Guiana; cultivation accelerated after independence in 1822, driving massive clearance of the Atlantic Forest, and by 1852 Brazil had become the world's largest producer — a position it has held ever since. After the Boston Tea Party of 1773, American colonists switched en masse to coffee as a patriotic gesture, cementing the beverage's dominance in what would become the world's largest consuming market. See Global coffee production and trade for how these planting decisions shaped the modern industry.