Disclosed herein is an anti-wart pharmaceutical composition including a water-soluble extract from a plant of Solanum genus, the water-soluble extract comprising solamargine and solasonine. Also disclosed is the use of the water-soluble extract in the manufacture of a medicament for treating wart.