Coffee is a brewed drink prepared from roasted seeds, commonly called coffee beans, of the coffee plant. They are seeds of coffee cherries that grow on trees in over 70 countries, cultivated primarily in Latin America, Southeast Asia, and Africa. Green unroasted coffee is one of the most traded agricultural commodities in the world. Due to its caffeine content, coffee often has a stimulating effect on humans. Today, coffee is the third most popular drink in the world, behind water and tea.

Coffee has played a crucial role in many societies throughout history. The energizing effect of the coffee bean plant is thought to have been discovered in the northeast region of Ethiopia, and the cultivation of coffee first expanded in the Arab world. The earliest credible evidence of coffee drinking appears in the middle of the 15th century, in the Sufi monasteries of Yemen in southern Arabia. From the Muslim world, coffee spread to Italy, then to the rest of Europe, to Indonesia, and to the Americas. In East Africa and Yemen, it was used in religious ceremonies. As a result, the Ethiopian Church banned its secular consumption, a ban in effect until the reign of Emperor Menelik II of Ethiopia. It was banned in Ottoman Turkey during the 17th century for political reasons, and was associated with rebellious political activities in Europe.

Coffee berries, which contain the coffee seed, or "bean", are produced by several species of small evergreen bush of the genus Coffea. The two most commonly grown are the highly regarded Coffea arabica, and the 'robusta' form of the hardier Coffea canephora. The latter is resistant to the devastating coffee leaf rust (Hemileia vastatrix). Once ripe, coffee berries are picked, processed, and dried. The seeds are then roasted to varying degrees, depending on the desired flavor. They are then ground and brewed to create coffee. Coffee can be prepared and presented in a variety of ways.

An important export commodity, coffee was the top agricultural export for twelve countries in 2004, and it was the world's seventh-largest legal agricultural export by value in 2005. Some controversy is associated with coffee cultivation and its impact on the environment. Many studies have examined the relationship between coffee consumption and certain medical conditions; whether the overall effects of coffee are ultimately positive or negative has been widely disputed. The method of brewing coffee has been found to be important to its health effects.