Castles were fortified structures that offered protection to lords, their families and soldiers during times of warfare.