Castles were very effective defenses against armies until people invented cannons because a cannonball fired from a cannon can blow a large hole in a castle wall.