Flies go to rest at night in various sheltered places where they can stay safe and warm. Common resting spots include undersides of leaves, grass, branches, tree trunks, walls, ceilings, corners, and sometimes on curtains or light cords inside buildings. They prefer to rest higher off the ground, often 5 to 15 feet up, to avoid predators and be close to food sources. Flies are generally inactive at night, entering a state similar to sleep, and they may take short naps during the day as well. Being cold-blooded, lower night temperatures slow them down and make them less active. They do not have nests but simply find a convenient place to land and rest until morning.