Trees first appeared on Earth over 400 million years ago and have since diversified into many forms inhabiting various climates and habitats. Trees provide many ecological functions including sheltering plants from wind, moderating temperatures, preventing erosion, and providing wildlife habitat. Various agroforestry systems have been developed that incorporate trees into agricultural landscapes. These systems provide environmental benefits while also yielding useful products.