A mangonel was a type of catapult or siege machine used in the medieval period to throw projectiles at a castle's walls. The mangonel had better accuracy than a trebuchet (which was introduced later, shortly before the discovery and widespread usage of gunpowder).