In its native range, allspice grows in moist, loamy woodlands. It often grows in the dappled shade of the forest understory.