The anvil is a heavy metal block that is used to hammer or forge metal objects. The anvil works by providing a stable surface for the workpiece to rest on, and by absorbing the impact of the hammer.