The shrub is native to central and southern Europe, northwest Africa and western Asia; it is also naturalised in northern Europe, including the British Isles and Scandinavia, and North America. In the United States and Canada, it has become established in the wild over an area from Nova Scotia to Nebraska, with additional populations in Colorado, Idaho, Washington state, Montana, and British Columbia. Although not naturalised, in rural New Zealand it has been widely cultivated as a hedge on farms. It is cultivated for its fruits in many countries.