Ecology is the study of interactions between organisms and their environments. An ecosystem is composed of all the living and nonliving things in an area and how they interact. Ecosystems exist within larger biomes defined by climate and soil conditions. Within an ecosystem, populations of organisms interact as communities and compete for limited resources, which controls their sizes. The ecosystem and its abiotic and biotic factors together form the basic functional unit of ecology.