Soon after the outbreak of the American Civil War, the region started to provide cotton to Great Britain. The wealth generated by this activity was used to modernize the city; to bring religious men to come and teach in its schools; and supplement the water supply. The city came to be the third most populous city in the country. By the end of the 19th century, agriculture was in decay and since then the city's population has been searching for other ways to make a living.