Pets can affect wildlife in various ways, such as preying on small animals, competing for resources like food and habitat, spreading diseases to wildlife populations, and disrupting ecosystems by introducing non-native species. It's essential for pet owners to be responsible and mindful of their pets' interactions with wildlife to help preserve the balance of ecosystems.