Coffee's origins trace to Ethiopia, where wild coffee plants grew natively and local populations are believed to have consumed coffee cherries and, eventually, brewed coffee for centuries before written historical records document the practice clearly. Coffee cultivation and the specific practice of brewing roasted coffee beans as a beverage developed and spread more systematically from the fifteenth century onward in Yemen, particularly around the port city of Mocha (which later gave its name to a coffee preparation style), from where coffee spread across the broader Islamic world, becoming closely associated with Sufi religious practice before spreading into broader secular social use, including the development of coffeehouses (qahveh khaneh) that became significant social and intellectual gathering spaces across major cities including Cairo, Damascus, Baghdad, and Istanbul.
For an extended period, coffee cultivation remained geographically concentrated in Yemen, with Arab authorities reportedly taking deliberate measures to prevent viable coffee plants or fertile beans from leaving the region, protecting a lucrative trade monopoly. This monopoly was eventually broken through a combination of smuggling and, later, deliberate colonial cultivation efforts — a frequently repeated historical account credits a Sufi pilgrim named Baba Budan with smuggling seven coffee beans out of Yemen strapped to his body around 1670, establishing cultivation in India, though the beans' spread to European colonial powers followed multiple additional routes as well, including Dutch and French colonial cultivation efforts in Java, the Caribbean, and eventually Latin America from the late seventeenth and early eighteenth centuries onward. Coffee reached Europe through Ottoman trade contact and the Ottoman military presence during the 1683 Siege of Vienna, after which coffee's popularity in Vienna and across Europe grew rapidly, with European coffeehouses becoming significant sites of Enlightenment-era intellectual and political discussion through the eighteenth century.