Minecraft wiki entry for Villager, associated text: At sunset, villagers lie down in their beds and remain there until morning. Villagers wake early if food is thrown at them ‌[Java Edition only], they are pushed out of bed, or if their bed is destroyed. They also wake up when their bed is used, if they are attacked, or when a bell is rung. If possible, they return to sleeping in a bed after the interruption.