Minecraft wiki entry for Iron_Golem, associated text: If not within a village, iron golems slowly wander around attacking hostile mobs, usually making their way to a nearby village. If in that village, the iron golem doesn't leave.