Mayflies are attracted to light. Because of massive numbers of mayflies, they can swarm around homes and other buildings especially at night. As a result, piles of these dead insects can be found below lights and windows in the morning.