The crafting recipe of the anvil is quite simple. You need to place three iron blocks and four iron ingots. Then, place these two crafting materials as shown in the image given.