AllĀ photosynthesisingĀ plants and algae in an ecosystem compete for light, space, water and minerals from the soil. Animals in an ecosystem compete for food, mates and their territory. Organisms which have more of these resources tend to grow more healthily and are more likely to have offspring.