As the seat of power for lords and monarchs, medieval castles were often large enough to house a considerable staff, as well as members of the court and important guests. As a result, they needed a series of rooms, not just residential chambers like bedrooms, but functional spaces too such as kitchens and stores.