Who Invented the Fireworks?

Fireworks were first invented in Ancient China sometime around the year 1040. It was believed that they would scare off any evil spirits that may have been around.