Ecosystems are made up of all the living and nonliving things in an environment. They consist of populations of organisms, communities of populations that interact, and habitats that meet organisms' needs. There are several main types of ecosystems including deserts, grasslands, oceans, rivers and lakes, and forests. Each ecosystem contains different plants and animals that are adapted to the environmental conditions.