In later medieval Europe, the main room of a castle or manor house was the great hall. In a medieval building, the hall was where the fire was kept. With time, its functions as dormitory, kitchen, parlour and so on were divided off to separate rooms or, in the case of the kitchen, a separate building.