Eagles play a role in controlling populations of invasive species within their habitats by preying on these species. As apex predators, eagles help maintain a balance in ecosystems by hunting and consuming invasive species, which can help prevent them from overpopulating and causing harm to native species and their habitats. Additionally, the presence of eagles in an area can also deter invasive species from settling in that area, as they may avoid areas where they are at risk of being preyed upon by eagles.