A Trebuchet was a device used in wars and sieges in the Middle Ages. It could be used to throw stones at ramparts, trying to break them down. It could also be used to throw things over the walls of a city. These could be corpses of animals or people that had died of the plague. Trebuchets were more accurate than other medieval catapults. Trebuchets were first made in China in the 4th century BC.