Living in Spain Home, bills and pets

10 Simple Tricks To Keep Flies Away

The surest way to keep flies away is to take away what attracts them: food waste, dirty bins, pet mess and the slime inside drains. Then keep them out with fly screens on windows and doors, cover food, and catch the few that get in with sticky paper or, for fruit flies, a vinegar trap. Outdoors, a strong fan blowing across the table and a baited trap hung well away from where you sit help the most. Strong-smelling oils and herbs help only a little, and a bag of water with coins in it does not work.

Close-up of a fly

Flies are worse in hot climates like Spain’s, especially through the summer, and they are more than an annoyance: house flies carry germs from rubbish and animal mess onto food, and some Spanish flies bite. Below are 10 simple tricks, in order of how well they are supported by university pest advisers and published studies, followed by three popular tricks that have no evidence behind them. They apply whether you live in a city flat, a villa on the coast or a finca in the country.

Which Flies Are Common in Spain?

Spain is home to several species of flies, each behaving differently depending on location, season, and temperature:

  • Mosca común (housefly): Found everywhere. It does not bite, but it feeds on rubbish and animal mess and then lands on food and worktops.
  • Mosca negra (black fly): A tiny fly, 1.5 to 5 mm long, that bites people and animals. It breeds in running water, not in stagnant water, so it is a problem near rivers and irrigation channels, above all in Catalonia, Aragón and the Valencia region, and on some rivers in the Madrid region. It bites outdoors by day, mostly early in the morning and late in the afternoon.
  • Mosca de la fruta (fruit fly): Breeds quickly in bins, drains, and ripe produce.
  • Blow flies (bluebottles and greenbottles): Shiny metallic blue or green flies that breed in household food waste and pet mess. They are strongly drawn to food and rubbish, which is why they turn up at barbecues.
  • Drain flies (moth flies): Small, dark, fuzzy flies that do not bite. They breed in the slime inside sink, shower and floor drains that are not used much.
  • Stable flies: Look like houseflies but bite, and the bite hurts. Often found around horses and livestock, they also breed in damp grass cuttings and compost heaps.

Each needs slightly different tactics, but the first step is always the same: find where they are breeding and remove it. Pest advisers at the University of California put it simply: almost all nuisance flies are best controlled by getting rid of the places where their larvae grow.

Why You Need More Than Just Sprays

Fly spray kills the flies it touches and nothing more. University pest advisers describe sprays as a quick knock-down that gives no lasting protection, and say that in most homes insecticides are not needed and should be the last resort, after the non-chemical steps. If the bin, the drain or the dog mess that the flies are breeding in is still there, new flies soon replace the dead ones. Never pour insecticide down a drain.

How to Keep Flies Away: 10 Tricks in Order of Evidence

The first eight are recommended by university extension services (the public pest advice services of agricultural universities) or by Spain’s food safety agency. Numbers 9 and 10 are plausible but less well proven, and we say so.

1. Empty and Wash the Bins

House flies and blow flies lay their eggs in warm, moist waste, and in summer a house fly can go from egg to adult in as little as seven days. That is why pest advisers say rubbish must leave the house at least once a week even if the bin is not full. In the heat of a Spanish summer, take kitchen waste to the street container every day. Tie it in a plastic bag first, use a bin with a tight lid, keep outdoor bins as far from the door as you can, and wash the bin itself regularly with soap and water. Spain’s food safety agency (AESAN) gives the same advice for summer: keep rubbish in smooth, washable, closed containers, away from food. If you live in a flat, do not leave bin bags in shared hallways overnight.

2. Clear Up Pet Mess, Grass Cuttings and Compost

Dog mess in the garden is a breeding site for blow flies and house flies. Pick it up, seal it in a plastic bag and put it in the bin. Do not leave piles of wet grass cuttings lying about: spread them thinly to dry or mix them into the compost, and turn the compost heap from time to time, which stops it becoming a nursery for stable flies and house flies.

3. Fit Fly Screens on Windows and Doors

Nearly every fly in a house has come in from outside, so a physical barrier does more than any repellent. Fit well-fitting screens to the windows you open, starting with the kitchen and bedrooms, seal gaps around the frames, and keep doors that have no screen closed. In Spanish hardware stores, ask for “mosquiteras para ventanas”. A fine mesh (16 threads to the inch) helps to keep even fruit flies out.

4. Cover Food and Clear the Table Quickly

Flies come for food, so do not leave any out. Keep food in closed containers or under a mesh food cover, indoors and on the terrace, and wipe up spills. Eat, refrigerate or throw away fruit once it is ripe, and rinse bottles and cans before they go in the recycling, because fruit flies feed on the dregs. AESAN’s summer advice is to keep food out of reach of insects and pets, and to put leftovers in the fridge as soon as possible, never leaving them more than two hours at room temperature.

5. Clean the Drains

Fruit flies and drain flies breed in the film of slime inside sink, shower and floor drains. To find out which drain they are coming from, turn a clear plastic cup lightly coated with cooking oil upside down over the drain and leave it for a few days: the flies that come out stick to it. The cure is to clean the slime out of the pipe and the trap thoroughly. Pouring hot water down gives only short relief. A drain strainer (“rejilla para desagüe”) keeps food scraps out of the pipe, but it does not stop flies that are already breeding there.

Private cover in Spain

See a doctor or specialist privately instead of waiting your turn. Sanitas plans from €22,10 a month.

Get a price

6. Set a Vinegar Trap for Fruit Flies

This is the one home-made trap that extension services recommend, and it works on fruit flies, not on house flies. Pour 2 to 3 cm of apple cider vinegar into a glass or jar, add a drop of washing-up liquid and swirl. Cover the top with a paper funnel, or with cling film with a few small holes poked in it. The smell draws the flies in, and the washing-up liquid breaks the surface of the liquid so that they sink and drown. Put one wherever you see fruit flies and replace it every 2 to 3 days. The trap only catches the adults. A female fruit fly can lay about 500 eggs and the young become adults in about a week, so you also have to remove what they are breeding in, usually overripe fruit, the kitchen bin or a drain.

7. Hang Sticky Paper or Use a UV Light Trap Indoors

For the few house flies that still get in, old-fashioned sticky fly paper works well in a small closed space such as a kitchen or a utility room. It will not cope with a heavy infestation and it is no use outdoors. An ultraviolet light trap can also work indoors, as long as it is not competing with daylight, so place it away from windows. Near food, choose the kind that holds the flies on a glue board, not an electric zapper: when a fly hits the wires its body can burst. For the same reason, do not swat flies over worktops or the table.

8. Hang a Baited Fly Trap Outside, Away From the House

The bag and bottle traps sold in garden centres and agricultural co-operatives (trampas para moscas) use a smelly bait to draw house flies and blow flies in through a cone that they cannot find their way back out of. They work well on two conditions. First, they must not be competing with an open bin or animal mess nearby. Second, because the bait smells strongly and pulls flies towards it, hang the trap at the far end of the garden, well away from the terrace, doors and windows, and never beside the table.

9. Put a Strong Fan on the Terrace

Moving air makes it hard for flies to land, but the air has to be moving fast. Agricultural engineers at the University of Kentucky, who measured fans in horse stables, put the air speed needed to keep flies off at more than 200 feet a minute, which is about 1 metre a second, and found that an ordinary box fan reaches that only directly in front of it. So a fan helps if it is a strong one, placed close and blowing straight across the table or the food. A gentle breeze from a fan on the other side of the terrace will not. This trick is plausible and widely used, but it has been tested far less than the eight above.

10. Use Scents as an Extra: Peppermint, Lemongrass, Eucalyptus and Herbs

What scent keeps flies away? In laboratory tests the essential oils of peppermint, eucalyptus and lemongrass all repelled house flies, with peppermint the strongest, and a professionally formulated peppermint oil product cut fly numbers sharply in a field trial. Basil oil has also been shown to put house flies off food in the laboratory. What has not been tested is the home version: a few drops of oil in water sprayed around a doorframe, a citronella candle, a pot of basil, mint or lavender by the door, or half a lemon stuck with cloves. These give off far less scent than the oils in the studies, and it fades quickly, so treat them as a pleasant extra that may help a little close by, not as fly control. If you want to try a spray, mix 20 to 25 drops of peppermint or lemongrass oil with warm water in a spray bottle, shake it well each time, and mist around bins, doorframes and windows, repeating it often.

How to Stop Flies Landing on You

Flies land on you to feed. House flies readily drink sweat and other moisture on the skin, and flies find people by body odour, the carbon dioxide in our breath and body heat. So the way to stop flies landing on you is to give them less to find and to make landing difficult. A skin repellent is not the answer for house flies: repellents with DEET or icaridin are made to prevent bites from mosquitoes and biting flies, and extension advisers say that flies which do not bite may still circle you after you have put one on.

What does keep flies off your body:

  • Moving air. Sit in the stream of a strong fan, or use a small hand-held fan near your face. Flies struggle to land in air moving faster than about 1 metre a second.
  • Wash off sweat. Rinse your face, arms and legs or have a shower after exercise or work outdoors, and change out of a sweaty shirt, so there is less on your skin for flies to feed on.
  • Cover food and drink. Flies that come for your plate or glass land on you as well, so keep food covered until you eat, put a lid on sweet drinks and clear the table as soon as you finish.
  • Cover up. Light, loose long sleeves and trousers leave less bare skin, and where flies swarm around the face a head net stops them. Clothing also protects against the black fly, which does not bite through fabric.
  • Move away from what is drawing them. If there is a bin, dog mess or a manure heap nearby, the flies are there for that and you are simply close to it.

How to Get Rid of Flies in the House Quickly

Do three things today. Find and remove the source: check the kitchen bin, the fruit bowl, the recycling and the drains. Close or screen the windows and doors the flies are using. Then catch the adults that are already inside, with sticky paper for house flies and a vinegar trap for fruit flies. Once the source has gone, no new flies appear and the traps deal with the rest.

What Keeps Flies Away Outside?

Outdoors you cannot shut flies out, so make your terrace less interesting than somewhere else. Move the bins away from where you sit and keep the lids shut, pick up dog mess, keep food covered until you eat and clear the plates as soon as you finish. Stand a strong fan so that it blows across the table, and hang a baited fly trap at the far side of the garden to draw flies away from you. Candles and herbs smell nice but do little.

Three Fly Tricks That Do Not Work

  • A bag of water with coins in it: The idea is that light bending through the water confuses the fly’s eyes. When it was tested at Texas A&M University in a sheep barn full of house flies, the sticky strip hanging next to the bag caught at least as many flies for its size as the strip three metres away. It does no harm, but it does not keep flies out.
  • Milk, sugar and pepper in a dish: An old recipe with no published evidence behind it. Sweet milk is a bait, so at best it brings flies to wherever you put the dish, which is usually your table.
  • Cucumber slices on the bin: There is no evidence that cucumber stops flies laying eggs, and a slice left on a bin lid is one more piece of rotting food. Use a bin with a tight lid.

Why Are There So Many Flies in Spain in Summer?

Because of the heat. Flies are cold-blooded, so the warmer it is, the faster they breed. A house fly takes about three weeks to grow from egg to adult in mild weather, but as little as seven to ten days in summer heat, and each female lays several batches of 100 to 150 eggs, so numbers multiply many times over in a single month. Few eggs survive below about 15°C, which is why flies almost disappear in winter and come back in spring. A Spanish summer also gives flies everything else they need: rubbish and food scraps that rot faster in the heat, meals eaten outdoors, and doors and windows left open. In the countryside there are livestock, stables and manure, and house flies easily travel one to two miles (about two to three kilometres) from where they hatch. Near rivers in the north-east and around Madrid, the small biting black fly adds to the problem.

For Rural or Semi-Rural Homes

If you keep chickens, goats or horses, or live near a farm, fly control starts with the manure. Veterinary guidance is to clear droppings and soiled bedding at least twice a week, because that is where flies breed, and to keep bedding and spilt feed dry: a dry heap breeds far fewer flies than a wet one. Stable flies, which bite people as well as animals, breed in manure, damp hay and grass cuttings. The baited hanging traps sold in Spanish agricultural co-operatives and garden centres help when they are hung away from the house. Because flies travel a mile or more, a neighbour’s animals can be the source, and then screens on your own windows and doors matter most.

Are Flies Dangerous?

In a clean home in Spain, flies are mainly a food hygiene risk and not a serious danger. House flies do not bite. The problem is where they have been: they feed and breed on rubbish and on animal and human waste, and carry germs from there on their feet and body hairs, in their vomit and in their droppings. A review of 99 studies published in 2018 found more than 130 different disease-causing germs on house flies, most of them bacteria. Public health and university sources link house flies to the spread of diarrhoea and food poisoning, including salmonella and shigella infections. That is the reason for covering food and keeping bins and the kitchen clean. If you do get vomiting or diarrhoea in summer, our guide to food poisoning explains what to do.

Some flies do bite. The black fly (mosca negra) gives a painful bite, usually on the legs below the knee. In Spain it does not pass on any disease, according to Madrid’s public health service, but some people react strongly, with marked swelling, a slight fever or a general feeling of being unwell, and should see a doctor. Near rivers, long sleeves and long trousers protect better than repellent, because the black fly does not bite through clothing. Stable flies give a painful bite too.

Looking for More Than Just Natural Fly Repellents?

When you're living in Spain, small annoyances like flies are just the beginning. From seasonal bugs to unexpected health issues, having the right private health insurance in Spain for expats gives you peace of mind. Sanitas health insurance plans include emergency care at the emergency centres in the Sanitas network. Explore Sanitas Health insurance built for expat life today.

Getting through the Spanish summer? Read our guide to summer health risks in Spain in the Health Library.

Frequently asked questions

What scent keeps flies away?

In laboratory tests peppermint oil repelled house flies best, followed by eucalyptus and lemongrass, and basil oil also put them off. A candle, a pot of herbs or a home-made spray gives off far less scent and has not been shown to keep flies away, so use scents as an extra and rely on clean bins, covered food and fly screens.

How do you get rid of flies in Spain?

Remove what they breed in first: take kitchen rubbish out every day in summer, wash the bins, pick up pet mess and clean the drains. Then fit fly screens (mosquiteras) on windows and doors, keep food covered, and catch the flies already indoors with sticky paper or, for fruit flies, a vinegar trap.

What is the best remedy to keep flies away?

Cleanliness, not a repellent. University pest advisers agree that almost all nuisance flies are best controlled by removing the waste they breed in, backed up by well-fitting fly screens. Traps and fans help with the flies that are left, and scents come last.

How do I get rid of flies quickly?

Find and remove the source (the kitchen bin, overripe fruit, the recycling or a slimy drain), close or screen the windows the flies are using, and trap the ones already inside: sticky paper for house flies and, for fruit flies, a jar of apple cider vinegar with a drop of washing-up liquid under a paper funnel.

More in Home, utilities, television and pets 16 guides and 2 articles

See all 18

Back to top

Read next

Share this

Reviewed by Sean Guy, authorised Sanitas agent (agent code 22395) and DGSFP-registered insurance mediator (C0320X5769518Z), Marbella.

Written by the HealthPlan Spain team: English-speaking Sanitas health insurance specialists, helping expats in Spain get the right cover since 2011. Authorised and regulated by the DGSFP.

Get covered in Spain

Compare Sanitas plans and get an instant price from €22,10 a month, with our English-speaking team.