Allspice, also known as Jamaica pepper, myrtle pepper, pimenta, or pimento, is the dried unripe berry of Pimenta dioica, a midcanopy tree native to the Greater Antilles, southern Mexico, and Central America, now cultivated in many warm parts of the world.

The name allspice was coined as early as 1621 by the English, who valued it as a spice that combined the flavours of cinnamon, nutmeg, and clove. Contrary to common misconception, it is not a mixture of spices. In West Indian, Middle Eastern, and Northern European cuisines the spice is frequently used as part of savory dishes, such as the Jerk spice mix from Jamaica, while in North American cooking its often a part of desserts, such as pumpkin pie spice.

Several unrelated fragrant shrubs are called "Carolina allspice" (Calycanthus floridus), "Japanese allspice" (Chimonanthus praecox), or "wild allspice" (Lindera benzoin).