Pepper has been known to Indian cooking since at least 2000 BC. Black Pepper (or perhaps long pepper) was believed to cure illness such as constipation, diarrhea, earache, indigestion, insomnia, joint pain, liver problems, lung disease, tooth decay, and toothaches.