 In 1851 the city introduced gaslights and by 1857 installed a new municipal water system.All these civic improvements helped attract and hold a substantial business community, based on manufacture of tobacco products, cotton and flour and banking.At the time of the American Civil War, Petersburg was the second-largest city in Virginia after the capital, Richmond, and the seventh-largest city in the Confederacy.