castles were attacked by invaders shooting at the castles with arrows, cannons, catapults, trebuchets or a battering ram.
built as protection for invaders
As an offense to see if invaders were coming
so if invaders get passed the gaurds they can not get in
As fortification, to repel potential invaders. Also, they were good publicity.
Antibodies
To attack castles that the enemies are trying to get into or destroy.
they did by using Castles
microglia
Using fire to burn it down
Medieval castles were needed for safety because they protected people from invaders and other dangers. Castles were also built to defend from danger. They were equipped with high walls, murder holes, cover for soldiers, and more.
Many castles had moats, steep embankments or other natural defenses. Castle defense was often a matter of waiting out the attackers - many castles had their own water supply. Artillery, which could destroy walls, made castles obsolete.