This post was originally written for the Hardy Plant Society of Oregon (HPSO) Quarterly magazine and was greatly improved by the HPSO editorial team.
Part of the joy of gardening is seeing the beautiful birds, butterflies, and other charismatic fauna that come to visit your space. With careful thought about the elements that draw them into your garden, you can make relatively minor adjustments that help promote their survival and conservation.
Many features of garden spaces are attractive to insects, birds, and other types of urban wildlife. For example, as the profusion of flowers increases in garden spaces, beneficial insect species also increase. Birdfeeders provide ample and easy-to-access forage for a variety of wildlife, including birds and squirrels. Water features such as ponds or fountains are exploited by honey bees and other garden wildlife, particularly on hot days.
For many animals, these features of gardens represent relatively novel cues that they use to assess the overall quality of foraging or nesting sites. Sometimes animals make bad decisions on novel cues encountered in human-dominated landscapes. Because of the way that light reflects off of and is polarized by shiny, dark objects, mayflies and dragonflies are more attracted to oil spills, asphalt roads, and dark green automobiles than to water.1 These insects often become trapped in oil puddles or stuck to the road, and any eggs laid on these surfaces will obviously not survive.
When organisms choose to nest, feed, or reproduce in a highly attractive but low-quality habitat, that habitat is known as an “ecological trap.” Two criteria determine an ecological trap: First, an individual prefers a poorer habitat over a better habitat; and second, the individual’s survival or reproduction is lower in the preferred habitat. Intuitively, it is easy to understand why gardeners who use pesticides on flowering plants that are highly attractive to insects are at high risk of creating ecological traps. But there are other, less obvious, ways that well-meaning gardeners may attract beneficial species into garden spaces only to ultimately harm the chances of survival and successful reproduction. In this article, I review what we do know about ecological traps in garden spaces, and share ideas for how to reduce or eliminate them.
Sometimes innocuous and every day actions conspire to create an ecological trap. For example, porch or other outdoor lights act as an ecological trap for many night-flying insects. These will continuously turn their bodies so sources of light shine on their backs. Scientists think this is an adaptation to help them maintain a constant flight path that is oriented to the horizon.2 However, the prevalence of artificial lights makes this a maladaptive behavior that causes them to fly erratically and also makes them more prone to being eaten by spiders that build webs near night lights.3 One relatively easy way to limit the negative effects of artificial light on night-flying moths and other insects is to switch to yellow-colored light bulbs. Flight behavior is suppressed in moths when exposed to yellow light, making them less likely to gather at your porch light than if it were a white bulb.4

A second item to consider is where your flowering plants are located, particularly those that are highly attractive to insects. There is some evidence that pollinator gardens on rooftops or high balconies (fifth floor or higher) might function as ecological traps by drawing insects in with flowers to a largely isolated habitat subject to environmental conditions harsher than those at ground level.5 This suggests that gardeners should avoid planting highly attractive flowers on high balconies or rooftop gardens of mid- and high-rise buildings. Recent evidence also suggests that high floral abundance adjacent to streets with heavy traffic increases mortality of butterflies and dragonflies.6 This study was conducted near high-speed freeways but nonetheless provides a cautionary note to gardeners with landscaped areas adjacent to heavy traffic.

Most research on ecological traps in urban spaces has focused on birds7 and has found that the propensity of a garden to act as an ecological trap is variable across different contexts. For example, gardeners who live adjacent to woodland habitat have greater on-site bird mortality due to domestic cats.8 This suggests that if you live near forest land or another wooded site, you may want to think twice before putting out bird feeders. Even if you don’t have an outdoor cat, they’re such ubiquitous characters in urban areas that drawing birds in with a bird feeder may be doing more harm than good. Similarly, bird feeders concentrate foraging birds at a specific site, which also attracts predators looking for prey. Although squirrels are the most common non-target animal seen at bird feeders, carnivorous foxes, skunks, racoons, and coyotes increase locally when bird feeders are present.9 This is why it is important to place feeders in a spot that provides birds with easy retreat to a nearby tree or tall shrub, where they can escape potential predators.

By thinking carefully about the cues in your garden that attract birds, butterflies, and other welcome fauna, you can avoid dangers to them, encourage their survival, and add to the joy your garden brings you.
Gail Langellotto is a professor of horticulture at Oregon State University and Principal Investigator of the Oregon State University Garden Ecology Lab. She holds a B.S. in biology and an M.S. and Ph.D. in entomology, all from the University of Maryland. She is a regular contributor to the HPSO Quarterly.
References
1Horváth et al. 2009. Polarized light pollution: a new kind of ecological photopollution. Frontiers in Ecology and the Environment,7: 317–25.
2Fabian et al. 2024. Why flying insects gather at artificial light. Nature Communications, 15(689): 15pp.
3McMunn et al. 2019. Artificial light increases local predator abundance, predation rates, and herbivory. Environmental Entomology, 48: 1331-1339.
4Shimoda, M., & Honda, K.-I. 2013. Insect reactions to light and its applications to pest management. Applied Entomology and Zoology, 48: 413–421.
5MacIvor JS. 2016. Building height matters: Nesting activity of bees and wasps on vegetated roofs. Israel Journal of Ecology and Evolution, 62: 88–96.
6Keilsohn et al. 2018. Roadside habitat impacts insect traffic mortality. Journal of Insect Conservation, 22: 183-188.
7Zuñiga-Palacios et al. 2021. What do we know (and need to know) about the role of urban habitats as ecological traps? Systemic review and meta-analysis. Science of the Total Environment,780: 146559.
8Shipley et al. 2013. Residential edges as ecological traps: postfledging survival of a ground-nesting passerine in a forested urban park. Auk, 130: 501-511.
9Reed and Bonter. 2018. Supplementing non-target taxa: bird feeding alters the local distribution of mammals. Ecological Applications, 28:761-770.