"The Book of One Thousand and One Nights", compiled in the 9th century, mentions cubeb as a remedy for infertility, showing it was already used by Arabs for medicinal purposes.Cubeb was introduced to Arabic cuisine around the 10th century.