Eagles play a significant role in shaping their environment through behaviors like nest-building and foraging. Their nest-building activities help create habitats for other species that may use the abandoned nests. Additionally, when eagles forage for food, they help control the population of their prey, thereby maintaining a balance in the ecosystem. By regulating the populations of certain animals through their foraging habits, eagles indirectly impact the availability of resources and influence the overall biodiversity of their habitat.