In a steam engine, the firebox is the area where the fuel is burned, producing heat to boil the water in the boiler. Most are somewhat box-shaped, hence the name.