A trebuchet is a medieval siege engine used to hurl large projectiles at enemy fortifications. It played a significant role in warfare during the Middle Ages, utilizing a counterweight mechanism for powerful launches.