A trebuchet is an ancient siege engine used to overpower a castle in medieval times. It was the nuclear weapon of its day from the 4th century to the 14th century. It is a huge, gravity powered catapult with a sling attached used to fling boulders, cows, or people into and at the castle.
In modern times they are used to hurl pumpkins for distance and accuracy.