Coffee was initially used for spiritual reasons. At least 1,000 years ago, traders brought coffee across the Red Sea into Arabia (modern-day Yemen), where Muslim monks began cultivating the shrub in their gardens. At first, the Arabians made wine from the pulp of the fermented coffee berries. This beverage was known as qishr (kisher in modern usage) and was used during religious ceremonies.
Coffee drinking was prohibited by jurists and scholars (ulema) meeting in Mecca in 1511 as haraam, but the subject of whether it was intoxicating was hotly debated over the next 30 years until the ban was finally overturned in the mid 16th century. Use in religious rites among the Sufi branch of Islam led to coffee's being put on trial in Mecca: it was accused of being a heretical substance, and its production and consumption were briefly repressed. It was later prohibited in Ottoman Turkey under an edict by the Sultan Murad IV. Coffee, regarded as a Muslim drink, was prohibited by Ethiopian Orthodox Christians until as late as 1889; it is now considered a national drink of Ethiopia for people of all faiths. Its early association in Europe with rebellious political activities led to Charles II outlawing coffeehouses from January 1676 (although the uproar created forced the monarch to back down two days before the ban was due to come into force). Frederick the Great banned it in Germany in 1777 for nationalistic and economic reasons; concerned about the money leaving to country on the popular beverage, he sought to force the public back to consuming beer. Lacking coffee producing colonies, Germany had to import all its coffee at a great cost.
A contemporary example of religious prohibition of coffee can be found in The Church of Jesus Christ of Latter-day Saints. The organization holds that it is both physically and spiritually unhealthy to consume coffee. This comes from the Mormon doctrine of health, given in 1833 by Mormon founder Joseph Smith in a revelation called the Word of Wisdom. It does not identify coffee by name, but includes the statement that "hot drinks are not for the belly," which has been interpreted to forbid both coffee and tea.
Quite a number of members of the Seventh-day Adventist Church also avoid caffeinated drinks. In its teachings, the Church encourages members to avoid tea and coffee and other stimulants. Abstinence from coffee, tobacco and alcohol by many Adventists has afforded a near unique opportunity for studies to be conducted within that population group on the health effects of coffee drinking, free from confounding factors. One study was able to show a weak but statistically significant association between coffee consumption and mortality from ischemic heart disease, other cardiovascular disease, all cardiovascular diseases combined, and all causes of death.