Gunpowder served every military operation and all civil engineering work until smokeless powder was invented. Once made at a powder mill, it needed somewhere safe to be kept until distribution, and powder magazines were built to serve that need. They were frequently placed in remote, secure spots at the edges of dense population centers, since they were quite likely to explode. Buildings at powder mills were usually spaced apart and designed to dampen blasts, so a blast in a magazine would not trigger a chain reaction across the rest of the mill. The magazines were built to guard the gunpowder and also to guard their surroundings against possible explosions. Walls were very thick, typically of stone or brick, and some even had attics filled with sand. Because the powder had to stay cool and dry, magazines at times had inventive ventilation systems that moved air through the whole building without weakening security. For safety the gunpowder was kept on wooden barrels. Even the smallest spark from metal scraping inside a powder magazine could blow up the whole building. Powder mills and magazines were deliberately built where railroad lines were close at hand. Rail lines made it possible to move the powder quickly to wherever it was needed. The Manchester Powder Mill sent its powder out over the Nashville & Chattanooga Railroad, reaching points across the Confederacy.
Source: Historical marker, reworded by TennRoam. Marker location: HMdb.org, https://www.hmdb.org/m.asp?m=277778