Reportedly native to Peru and Chile, where the fruits are casually eaten and occasionally sold in markets but the plant is still not an important crop, it has been widely introduced into cultivation in other tropical, subtropical and even temperate areas. It is said to succeed wherever tomatoes can be grown. The plant was grown by early settlers at the Cape of Good Hope before 1807. In South Africa it is commercially cultivated and common as an escape and the jam and canned whole fruits are staple commodities, often exported. It is cultivated and naturalized on a small scale in Gabon and other parts of Central Africa.