<human>:  Who invented fireworks and when?
<bot>: Fireworks were invented in China in the 1200s. They were used to scare away evil spirits. The Chinese used fireworks to celebrate important events, such as weddings and birthdays.