“Iron Golems are large, strong utility mobs. Their main purpose is to defend villagers in villages from hostile mobs and siege attacks. They will try to protect villagers from getting killed.”
Iron Golems can spawn in Villages consisting of 10 Villagers and 21 houses. They can also be created manually by placing 4 Iron Blocks in a “T” shape and placing a Pumpkin or Jack ‘o’ Lantern on top.
Iron Golems will defend Villagers by attacking mobs. They will also attack you if you hit the Iron Golem or repeatedly hit Villagers.
The Minecraft Wiki is not affiliated with this website in any way. All credits for the images and the text go to them.