In the early Middle Ages, when few castles had large permanent garrisons, not only servants but military and administrative personnel slept in towers or in basements, or in the hall, or in lean-to structures; knights performing castle guard slept near their assigned posts.