Minecraft wiki entry for Survival_in_an_infinite_desert, associated text: This should keep them safe until morning. However, villagers are stupid; they go outside while hostile mobs are still alive. Desert villagers also seem completely oblivious to the fact that Husks roam freely in the daytime. Because of this stupidity you probably need to keep all the villagers imprisoned for their own protection in one main building. Make yourself a little room in the building so you can go in there to trade with them without them all escaping. It really is for their own good!