Medieval warfare relied heavily on melee weapons like swords, hammers, and daggers. Swords were the most prestigious weapon and came in single-handed and two-handed varieties. Archers used bows like the longbow to attack from a distance. Infantry fought on foot in tight formations while knights battled as heavy cavalry. Siege weapons such as trebuchets and battering rams were used to assault castles. The advent of gunpowder began to change traditional medieval warfare and weapons. Famous medieval battles included Hastings, Sluys, and Agincourt.