Population and economic growth were spurred by improvements in access to water and the installment of the Tobacco Factory in 1782. The accumulation of capital brought by tobacco plantations allowed the city to economically surpass neighboring provinces.