Medieval castles had moats filled with water and drawbridges for defense. The moats surrounded the castle and were also used to dispose of garbage and sewage. Additional stone walls and arrow slits allowed archers to defend the castle from attackers approaching from elevated positions.