A barracks was a building used by various factions throughout history to recruit and train infantry. Variations of this building could be a training ground, a wide place providing enough space for infantry to train. Barracks were also where troops stationed at a base maintained bunks and living quarters.