Ecology is the study of interactions between living and non-living components in an environment. Communities are assemblages of multiple species that live together in an environment. Over time, communities undergo succession as they evolve towards a climax community best suited to the local environment. Organisms within a community interact through symbiotic relationships that can be mutually beneficial, competitive, or involve predation. Energy and nutrients flow through the community from producers like plants through various consumer trophic levels in food webs.