The planet we live on is full of people, plants, animals and insects. Each one of these creatures is an important part of the food chain. Mayflies, although annoying to humans, provide food for the frogs and birds in the area. They are also medically harmless. However, if you really want to try to get rid of these pesky, flying creatures, there are a few tricks to try. If one method doesn't work, try another one.
Keep standing water away from your home, if at all possible. Mayflies lay their eggs in water and die shortly afterward. If you get rid of any standing water, they cannot lay their eggs there, keeping the new round of mayflies from hatching in your backyard.
Turn lights off at night or when the mayflies seem to swarm in your area. Mayflies are attracted to the light, so if you turn the lights off, they may fly elsewhere.
Use a bug fogger in the area where you are having problems. This will repel or kill any insects in the area in which you use it. A bug fogger can be purchased at your local hardware or home improvement store.