Minecraft wiki entry for Defense, associated text: Light, in the form of evenly dispersed source blocks, should not be underestimated. Even without any physical defensive measures, a wide ring of torches prevents most hostile mobs from spawning. Additionally, if the area is large enough, their random wanderings will not bring them within attack range of the player.