Flies generally prefer warm weather and sun, so they aren't active at night. Like most people, flies rest when the sun goes down. When the temperature rises during daylight hours, they go back on the hunt for food. If you want to find where your houseflies rest at night, look for tiny dark spots or "fly specks" on flat surfaces -- these mark where resting flies have regurgitated and excreted waste.
Light and Temperature
While they rest at night, flies are active during the day -- particularly when it's sunny and warm. According to the Cornell University Department of Entomology, they get most of their activity when it's sunny and the temperature is between 80 and 90 degrees Fahrenheit. When the temperature dips below 45 degrees Fahrenheit, or when the sun goes down otherwise, they return to their resting state.
Tom Ryan is a freelance writer, editor and English tutor. He graduated from the University of Pittsburgh with a degree in English writing, and has also worked as an arts and entertainment reporter with "The Pitt News" and a public relations and advertising copywriter with the Carnegie Library of Pittsburgh.