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 a method for treating wart including applying to a subject in need of such treatment the water-soluble extract.