Fungi play an important economic role by decomposing organic matter to recycle nutrients in the environment. They are also useful in fermentation of foods and beverages, producing medicines like penicillin, and controlling pests biologically. However, some fungi can be harmful by destroying crops, foods, materials and causing diseases in humans and animals.