* Living organisms: This is called biotrophic feeding. Some fungi live in a symbiotic relationship with plants (mycorrhizae), helping them absorb nutrients in exchange for sugars. Others are parasitic and harm their host, like the fungi causing athlete's foot.
* Dead organisms: This is called saprotrophic feeding. Fungi are essential decomposers, breaking down dead plants and animals, releasing nutrients back into the environment.
So, fungi can be both parasites and decomposers, depending on their specific needs and the organism they are interacting with.