Cubeb pepper is also sometimes called cubeb berry and originated in Indonesia. While cubeb pepper is widely reported to have reached Europe via Venetian trade with the Arabs around the 14th century, historians believe that its connection to Europe is actually far older than that. In fact, the writings of Theophrastus show that the Ancient Greeks traded with Java and were early consumers of cubeb pepper. This means that the spice was used in Europe as early as the 4th century BC. When trading the peppers, the Indonesian farmers would sterilize the berries by scalding them to keep them from being grown elsewhere.
Cubeb pepper also made its way to China during the Tang Dynasty. It is known to have been used by the Arabs in the 9th century as a medicine and then in food during the 10th. The name cubeb comes from the Arabic word for the spice: al-kabaabah.