In an ecosystem, organisms interact with each other for the sake of food, shelter or protection.
Predation : Lion preys on the deer for food. One organism eats the other organism to obtain nutrients.
Mutualism : A lichen is an organism that results from relationship between a fungus and a photosynthetic alga. The alga provides food for the fungi and the fungi provides shelter for the alga.
Parasitism: Liver flukes are parasites that can infect humans and cause liver and bile duct disease. So they harm the human host and derive nutrients for their growth.