During the night, flies tend to sleep and they can do so on any surface such as floors, walls, curtains etc.