Minecraft wiki entry for Creating_a_village, associated text: A villager needs a house to stay in and be sheltered from threats such as illagers and zombies, which attack villagers on sight. Below are a few houses that you can make for them. Please note that as of 1.14, villagers consider a bed to be a house.