A tree can be the foundation of an ecosystem. Trees grow in diverse habitats, and can provide shelter and food to animals, birds, and insects.