It is believed that fireworks were invented in China in the 2nd century BC. The Chinese used fireworks for celebrations, religious rituals, and even as weapons during times of war. Fireworks eventually spread throughout the world and became an integral part of many cultures' celebrations, including New Year's Eve, Fourth of July, and Diwali. While the exact origin of fireworks is not confirmed, the Chinese are widely credited with their invention.