Solanum is a large genus in the nightshade family, Solanaceae. Its members range from herbs to shrubs and commonly bear five-parted flowers followed by berries.
Kew treats Solanum xanthocarpum Schrad. as a synonym of the accepted Solanum virginianum L. The species is native from the Arabian Peninsula and southern Iran through South Asia to south-central China and Myanmar, mainly in seasonally dry tropical habitats.
It is a low, spreading annual or subshrub armed with conspicuous yellow prickles on the stems and deeply lobed leaves. Purple rotate flowers are followed by round berries that become pale yellow as they mature.