Human: When did fireworks originate? Assistant: 
Fireworks were invented in China in the 10th century. They were used to scare away evil spirits. The Chinese used fireworks to celebrate important events, such as weddings and birthdays.