
Unlike mosquitoes or spiders, fruit flies lack the capability to pierce human skin. But that doesn’t mean they’re not a nuisance.
Bye-bye, flies
Leftover food and drinks attract flies to your home, along with overripe produce, pet droppings, open garbage cans, and drain residue.
Open trash cans and compost piles outside your home draw flies, especially when combined with standing water, mulch, or decaying plants nearby.
You can control fly populations by cleaning up food spills immediately, using tight-fitting lids on trash cans, and removing decaying organic matter.
Hiring a local pest control professional provides reliable help with fly infestations, including identifying breeding sites and eliminating entry points around your home.
Whether they’re buzzing through your backyard or darting around your home, flies are a never-ending annoyance that we all must face. While it often feels like they come out of nowhere, there’s a simple answer to how they breed (and how they feed). Here’s what attracts flies—and what you can do to get them to stop bugging you.
There are a variety of different types of flies that are attracted to people, animals, and rotting organic matter. Some, including the house fly and blue bottle fly, can even carry diseases and harmful bacteria like E. coli. Here are the main types that could be buzzing around your home:
Fruit fly: Tiny round and elongated body (less than 1/8” long), yellowish-brown
Gnat: Similar in size to a fruit fly, but with an elongated dark gray/black body and dangling legs
Drain fly: Tiny tan body (1/16th of an inch long)
Blue bottle fly: Iridescent blue body
Flesh fly: Light gray checkerboard body
Flies have a penchant for the dark, damp, and rotten. To lay eggs, females hunt for places like garbage cans, fecal matter, dumps, and rotten organic material. Trash cans are a particular favorite, as they are dark and filled with food scraps and other decaying organic matter. Once she’s found a suitable place, a female fly can lay as many as 500 eggs in several batches over a few days.
Things like food messes and decaying food scraps in the trash will feed flies, making your home seem like a bed and breakfast. They can quickly sneak in through a door left ajar, and they can easily find their way inside through holes in window screens. Keeping them out means maintaining a clean home, replacing broken window screens, and eliminating all other points of entry.
There’s a reason that flies are so ubiquitous—they only need dampness and rotting organic matter in order to breed and thrive. As such, they naturally gravitate towards a few things.
Leftover food and drinks: If you’ve forgotten about your leftover soup cooling on the counter or the soda you spilled before dinner, you can expect flies to find them for you if you don’t act quickly.
Overripe/rotting produce: Those lemons currently rotting in your fruit bowl could be attracting flies.
Pet droppings and pet food: As if you needed another reminder to pick up after your pet, their feces can attract flies. The same goes for their food, so be sure to keep a lid on it.
Open alcohol containers: If you dare to take a sip out of a bottle of wine that sat out uncovered all night, you might just encounter a fly. Gross.
Open garbage cans: Your trash can and everything in it (i.e., rotting meat and icky leftovers) can be a hotspot for flies.
Scum and residue in drains or garbage disposals: This stuff doesn’t just look gross when it builds up; it can also attract flies.

Whether or not they’ve got an outdoor barbecue to crash or an innocent animal to bug, flies always seem to be buzzing about pretty much any outdoor space. While it’s impossible to keep them out entirely, being mindful of their habits can help you identify what’s attracting them.
Doggie droppings, standing water, and rotting organic matter will all invite flies to your outdoor space. Things such as compost piles, outdoor trash cans, decaying plants, and even mulch can all make your outdoor space irresistible. If you’re having a fly problem, do a walkthrough of your property and note any issues you can address.

There are millions of flies for every human on Earth, so there’s only so much you can do to combat their rude presence. At the very least, there are ways to help keep flies out of your space (and out of your face). Here are the best ways to control the number of flies both in and around your home:
Avoid throwing food scraps away indoors—if you do, be sure to take the trash out every couple of days.
Clean up food spills and messes immediately.
Avoid leaving out fruit and sugary messes (especially if you’re trying to get rid of gnats and fruit flies).
Use sticky paper and fly traps to catch flies around the house.
Use tight-fitting lids on trash cans.
Clean and sanitize trash cans regularly.
Promptly remove dead or decaying plants and fruit.
Keep compost piles far away from your doors, windows, and outdoor living areas.
Encourage natural predators by adding bird and bat houses, birdbaths, and birdfeeders.
Clean up pet waste ASAP.
Repair cracks, broken screens, and other potential entry points.
A reliable team for moves across state. My switch to a new place needed careful lifting through tight hallways. The movers checked the doorway first, then carried heavier pieces with slow, controlled movements. Their patience helped prevent damage, and I?d choose them again.
This company does it right. Firstly, I want to say that Landan was a joy to work with. He was so kind, transparent, and had everything under control. His entire team showed up ready to work and they were all very respectful of the fact that we were in an office space. A little backstory – we...
I had FabClean 614 clean my apartment, and she did an outstanding job. She was so professional and efficient. My apartment looks absolutely spotless every surface, every corner, all cleaned to perfection. Definitely highly recommend FabClean 614 if you're looking for top-notch cleaning...
Raven and crew does absolutely fantastic job. They are very professional if any concerns were to occur with any of her work she always took responsibility and finished out with a great job. I have worked with her business for a year and have always been satisfied. Very trusted business and...
I would recommend this company to anyone! He showed up on time, was friendly, completed a very difficult repair on our dryer vent cover, was responsive, and pricing was extremely fair and competitive. I would have him back to do any of our repairs or cleanings without hesitation!
Best cleaning I've had at my property
Ace Fireplace Services' chimney sweep service is truly exceptional. They used advanced technology to ensure a thorough cleaning process, and my chimney has never looked better. I highly recommend their services.
This company went above and beyond with their work, chimney sweeps are usually pretty messy, but the clean up was spot on.!! Josh explained every thing that he was doing, and the things that he was checking to make sure the chimney was safe for me and my family. He was very professional,...
Good workers and they do a good job.
Mary Cleaning Service is amazing! The entire staff is very professional and they pay a great deal of attention to detail. I would definitely recommend!
From average costs to expert advice, get all the answers you need to get your job done.

Unlike mosquitoes or spiders, fruit flies lack the capability to pierce human skin. But that doesn’t mean they’re not a nuisance.

Gnats are the worst, but you can keep them at bay by avoiding what they like. Find out what attracts gnats and eight ways to keep them out.

Flies can seem like a never-ending annoyance, but there are ways to repel them. Find out how to keep flies away from your home and outdoor space.

Learn the key differences between cluster flies and house flies, from appearance and habits to risks, prevention, and treatment.

Drain flies vs. fruit flies: what’s the difference? Compare these common pests and discover the best ways to prevent and remove them.

Fruit flies and fungus gnats can appear similar but require different removal approaches. Learn the main differences between gnats vs. fruit flies.