Updated: July 8, 2025

Long-legged flies (family Dolichopodidae) are a group of beneficial insects known for their predatory habits. These tiny, fast-moving flies play a crucial role in natural pest control by feeding on aphids, mites, thrips, whiteflies, and other soft-bodied pests that commonly attack garden plants. By attracting long-legged flies to your garden, you can reduce the need for chemical pesticides and encourage a healthier ecosystem.

One of the most effective ways to attract long-legged flies is by planting certain types of flora that provide them with shelter, nectar, pollen, and breeding habitats. This article explores the best plants to attract long-legged flies and how to incorporate them into your garden for natural pest management.

Understanding Long-Legged Flies and Their Ecology

Before diving into plant recommendations, it’s helpful to understand what makes long-legged flies tick. These predatory insects thrive in environments where they have access to both prey and resources such as nectar or honeydew. Adult long-legged flies often feed on nectar and pollen, while their larvae are voracious predators or scavengers in moist soil or leaf litter.

Long-legged flies prefer gardens with diverse plant species and a variety of microhabitats. They are especially attracted to flowers with accessible nectar where they can easily feed without competition from larger pollinators. Providing a year-round supply of flowering plants ensures that adult flies have food throughout their active seasons.

Characteristics of Plants That Attract Long-Legged Flies

The ideal plants for attracting long-legged flies typically share these characteristics:

  • Small to medium-sized flowers: Flies are generally attracted to flowers that are easily accessible; clustered small flowers or simple blooms work best.
  • Open flower structure: Flowers that allow easy access to nectar and pollen without requiring specialized pollinators.
  • Extended blooming periods: Plants that bloom over several weeks or months provide consistent food resources.
  • Presence of extra-floral nectaries: Some plants produce nectar outside of flowers that attracts predatory insects.
  • Habitat diversity: A mix of herbaceous plants, shrubs, and ground covers can provide shelter and breeding sites.

With these criteria in mind, here are some proven plants that attract and support populations of long-legged flies.

Best Plants to Attract Long-Legged Flies

1. Yarrow (Achillea millefolium)

Yarrow is a hardy perennial with flat-topped clusters of tiny white or pastel flowers that bloom from early summer through fall. Its broad flower heads provide an excellent landing platform for long-legged flies seeking nectar. Yarrow also attracts many other beneficial insects like ladybugs and parasitic wasps.

Growing Tips: Yarrow thrives in well-drained soil under full sun. It is drought-tolerant once established and spreads moderately.

2. Fennel (Foeniculum vulgare)

Fennel is an aromatic herb bearing umbrella-like clusters of small yellow flowers that bloom in late summer. Its open flower clusters make it easy for long-legged flies to access nectar sources. Additionally, fennel serves as a host plant for beneficial predatory insects.

Growing Tips: Plant fennel in full sun with well-draining soil. It can grow quite tall and may self-seed if not deadheaded regularly.

3. Sweet Alyssum (Lobularia maritima)

Sweet alyssum produces dense clusters of tiny white, pink, or purple flowers continuously from spring through fall in mild climates. Its low-growing habit creates favorable microhabitats for ground-active beneficial insects such as long-legged flies.

Growing Tips: Sweet alyssum prefers full sun to partial shade and moist but well-drained soil. It works well as a border or ground cover.

4. Goldenrod (Solidago spp.)

Goldenrod features tall spikes of tiny golden-yellow flowers blooming late summer into fall when many other nectar sources decline. Its abundance of small florets supports a variety of predatory insects including long-legged flies.

Growing Tips: Goldenrod grows best in full sun with average moisture levels. It often spreads by rhizomes so give it space or contain its roots.

5. Dill (Anethum graveolens)

Dill has feathery foliage and flat umbels of yellow flowers similar to fennel. It blooms mid-to-late summer providing nectar during a critical time when many pests increase activity but flower availability decreases.

Growing Tips: Dill prefers full sun and well-drained soil but is fairly adaptable. Because it self-seeds readily, it can create continuous habitat if allowed.

6. Chamomile (Matricaria chamomilla)

Chamomile’s daisy-like white petals around yellow centers bloom repeatedly during the growing season creating plentiful feeding opportunities for beneficial flies and pollinators alike.

Growing Tips: Chamomile prefers light soil with good drainage under full sun or partial shade conditions.

7. Cilantro/Coriander (Coriandrum sativum)

When cilantro bolts, it produces umbels of white or pale pink flowers which attract predatory insects including long-legged flies that consume garden pests.

Growing Tips: Cilantro grows best in cooler weather with full to partial sun exposure; it prefers well-draining soil amended with organic matter.

Additional Tips for Attracting Long-Legged Flies

Provide Water Sources

Insects need moisture; shallow water sources like birdbaths with stones for perching or damp sand patches encourage long-legged fly activity near your plants.

Avoid Broad-Spectrum Insecticides

Pesticides can kill beneficial insects along with harmful ones; minimize use or opt for targeted pest control methods that preserve natural predator populations like long-legged flies.

Create Habitat Diversity

Incorporate native grasses, leaf litter areas, and mulch beds where fly larvae can find shelter in addition to flowering plants preferred by adults.

Interplanting Strategy

Plant these attractants near susceptible crops such as tomatoes, cucumbers, peppers, and roses where aphids or thrips commonly appear to maximize biological control benefits.

Conclusion

Attracting long-legged flies through strategic planting is an excellent natural pest control approach that supports sustainable gardening practices while reducing chemical inputs. By incorporating plants such as yarrow, fennel, sweet alyssum, goldenrod, dill, chamomile, and cilantro into your garden design, you create an inviting habitat rich in nectar sources and shelters essential for sustaining healthy long-legged fly populations.

These beneficial predators help keep damaging pest populations in check by preying on aphids, thrips, mites, and other soft-bodied insects — improving plant health naturally over time. Combined with good cultural practices like avoiding pesticides and providing water sources, these plants foster an ecosystem where natural pest control thrives year-round.

Start integrating these plants today into your landscape or vegetable beds to harness the power of long-legged flies — nature’s tiny yet mighty gardeners working quietly behind the scenes!

Related Posts:

Long-Legged Flies