The harshest anti-coffee law ever recorded says nothing against coffee. In 1633, after a fire destroyed five districts of Istanbul, Sultan Murad IV ordered every coffee house in the city closed. The instruction sent out to municipal governors, which Jonathan Morris quotes in Coffee: A Global History (2019) from the order despatched to the municipality of Eyüp, went further than closure: destroy the coffee kilns in your district, permit no one to open a new shop, and anyone who does open one "should be strung up over its front door." Execution, staged at the doorway of the business, as a notice to the street. Nothing in the order concerns the bean, the brew or the drinker. The offence was supplying the room. That distinction is the whole story, because by 1633 the legality of the drink itself had been formally settled for forty years, and the sultan had no argument left against it. He had an argument against the place where people drank it, and against what they did there.
Eighty years of bans that did not hold
Murad's order was not the first attempt. The first came in Mecca in 1511, when the city's pasha, Kh'air Beg, put coffee on trial before the religious scholars and produced three physicians to testify that it intoxicated. He got his ban. It was partly overturned in Cairo, and Beg himself was dismissed in 1512. The first coffee prohibition in history lasted about a year, and the pattern of the trial, a civic official leaning on medical testimony to close gathering places, reads more like public-order enforcement than theology.
Istanbul's first two coffee houses opened in 1554, run by Hakam of Damascus and Shems of Aleppo. Shems is said to have gone home three years later with 5,000 gold pieces, which tells you how fast the trade grew. By 1564 there were claimed to be over fifty establishments in the city, and by 1595 supposedly six hundred, though Morris cautions that the later figure probably lumps in taverns and boza shops. Suleiman the Magnificent, the same sultan who had tolerated the first coffee houses, was issuing edicts by 1565 to close the coffee houses of Aleppo and Damascus along with the taverns. His successors Selim II and Murad III issued further and more severe edicts in the decades that followed.
None of it held, and Morris gives the reason plainly: the officials and militia charged with enforcement were usually customers of these institutions, and not infrequently their owners.
Then, in 1591, the theology closed. The Sheik ul-Islam Bostanzade Mehmed Effendi issued a fatwa settling the last standing religious objection, which was that roasting carbonised the bean into a forbidden inanimate substance. He ruled that the roasted bean remained vegetable and the drink permitted. From that point on, an Ottoman ruler who wanted coffee gone could not argue against the drink. The empire's own chief jurist had ruled on the chemistry of roasting and coffee had won.
What the 1633 order was actually for
Murad IV came to the throne in 1623 as a minor and spent years struggling to establish his authority. Morris describes the regime he built once he had it: a reactionary one, complete with networks of informers who worked the coffee shops listening for gossip against him. The informers are the detail worth sitting with. The state already knew exactly where unsupervised talk happened, because it was paying people to sit there.
The 1633 fire gave him the occasion. It was believed to have been started by tobacco smoking in a coffee house, and tobacco, introduced to Turkey at the turn of the seventeenth century, appears to have been the primary target of the order, or at least its pretext. Murad is reputed to have stalked the city at night in disguise, delivering summary justice to smokers he caught. The execution clause for shop owners has a bureaucratic cruelty to it that one contemporary pasha, quoted by Morris, identified exactly: the proprietors had no means of stopping their customers from smoking, because many of those customers were soldiers who held the privileges of state office, and neither a shopkeeper nor any other inhabitant of the city could oppose them. The law hanged the owner for conduct he was legally powerless to prevent.
Why the room frightened a sultan
The coffee house was the first legitimate public venue in the Ottoman world where seating went by order of arrival rather than by rank. Hospitality, which had previously meant hosting at home with servants and displayed wealth, could now be exchanged in single cheap units: one man buying another a cup. A visitor to Cairo in 1599 recorded soldiers who, on getting change for a gold coin in a coffee house, would spend all of it treating the room, grandiosity purchased one penny cup at a time. Anyone could address anyone. Morris frames the coffee house as a symbol of an empire whose centralised hierarchy was giving way to fragmented power and contested ideologies, and the conservatives who attacked it did so precisely because of what it represented.
For a ruler whose grip was uncertain, a city full of rooms whose entire function was unsupervised conversation among mixed ranks was a standing threat. The execution clause attaches to the proprietor and not the drinker for a structural reason: the proprietor supplies the room. Kill the room and the conversation has nowhere to pool. The kilns were ordered destroyed for the same logic one step back, since a kiln can restart the trade.
This is also why coffee's earliest documented history runs through named Sufi teachers in Yemen, not a goatherd: from its first decades the drink was attached to gatherings, and the gatherings were always the point of friction.
What the ban achieved, and for how long
Less than its wording promised. Morris records that the prohibition was still in force inside Istanbul in the mid-1650s, two decades on, which by the standards of Ottoman coffee bans was real endurance. But beyond the city walls, coffee houses traded openly through the whole period, and in the empire's further regions they probably never stopped. By the last quarter of the seventeenth century they had reappeared inside Istanbul itself, and travellers were describing coffee houses as central fixtures of Cairo's street markets, the caravan routes across the Arabian Peninsula, and Istanbul's public gardens.
So the strongest anti-coffee measure on record managed roughly twenty years of enforcement inside one set of city walls, while the institution it targeted carried on around it and then came back. Within fifty years of the order, the coffee house had crossed into Europe and was multiplying there, trailing its own manufactured legends: Vienna's only coffee monument commemorates a siege story the documentary record contradicts.
What this story will not do
It will not prove that coffee itself was ever the danger, and it should not be told that way. The drink's legality was settled by fatwa in 1591 and was not reopened in 1633; the order names shops, kilns and proprietors, not the bean. It also will not support the romantic reading in which coffee is inherently the fuel of free thought and every ban a compliment to its power. Morris documents that the same rooms hosted gambling, dubious substances and worse, and that the ban's nearest target was probably tobacco. Nor is it evidence of anything peculiarly Ottoman. Frederick the Great's Prussia employed sniffers in the 1780s to smell out illicit coffee roasting, and the German campaign against coffee drinking by women is the panic Bach's Coffee Cantata was written against in Leipzig in 1732. On the European side, the stories bent the other way, toward invented approval rather than invented menace: the papal blessing of coffee was a story manufactured by people with coffee to sell. Rulers and traders kept fighting over coffee for two centuries on two continents. The drink was rarely what the fight was about.
One more caution on the numbers. The six hundred coffee houses claimed for 1595 is a contemporary assertion Morris explicitly doubts, and the 5,000 gold pieces attached to Shems is a report, not a receipt. The dated documents here are the edicts, the 1591 fatwa and the 1633 order. Build on those.
The habit worth taking away: when you meet the claim that some ruler banned coffee, find out what the order actually named. It nearly always names a room, a licence, a kiln or a tax, and almost never the drink. Read anti-coffee laws as assembly laws wearing a beverage costume, and the history stops being a curiosity about a drink and becomes what it actually is, a two-century argument about who is allowed to sit down and talk.