A pharmaceutical composition for treating diabetes comprising lanostanes as effective constituents is provided by the present invention. The suitable source of the lanostanes is the extracts from Poria which comprise 1-60% (by weight) lanostanes without secolanostanes substantially. The extracts are extracted from the metabolite, fermented product or mycelium of Polyporaceae plant Poria (Poria cocos (Schw) Wolf).