Rockets were originally invented in China during the 10th century as a form of entertainment and weaponry. They were used for military purposes, such as launching fireworks and signalling devices, and were eventually developed into more advanced rockets capable of carrying payloads and propelling spacecraft.