In the Middle Ages, people often slept in box beds. These fully enclosed beds were enclosed inside of a wooden box with a door that could shut to fully close off the sleeper from the outside world.