A feudal castle served two main functions - fortification and residence for the feudal lord. It was surrounded by high, thick walls containing towers and buckets for defense. The most important tower, called the tower of homage, served as the lord's residence and was in the most protected location within the castle walls.