What Were Castles Used for?

Castles were used for housing small communities and royal families. In the United Kingdom, for example, castles were used for a variety of purposes such as sleeping chambers, keeping prisoners, and protecting towns.