Inside a cracker there are two strips of card, attached end-to-end with a slight overlap. This overlap is treated with gunpowder – a mixture of potassium nitrate, charcoal and sulphur. When the cracker is pulled, the friction generated between the two strips causes enough heat to set the gunpowder off. The tube amplifies the sound of the tiny explosion.
Subscribe to BBC Focus magazine for fascinating new Q&As every month and follow @sciencefocusQA on Twitter for your daily dose of fun science facts.