According to legend coffee was discovered by an Ethiopian goat herd called Kaldi. He noticed that goats who ate certain beans became very lively. Coffee was drunk in Yemen by the 15th century. By the 16th century coffee had spread to Persia (Iran) and Turkey. There were many coffee houses where people could drink and also socialize.
Coffee reached Europe in the late 16th century through trade. Coffee was introduced into Italy first. In the 1600s coffee houses opened across Europe. www.localhistories.org/coffee.html