It was not until the end of the war with England and the Industrial Revolution in the early 19th century that the city returned to a period of increasing prosperity. The population grew from a mere 1,942 people in 1801 to more than 11,500 in 1901. This development was followed by improvement of the infrastructure, such as rail links with Odense, Faaborg and Nyborg, improvement of the local roads and the establishment of a real harbour suited for extensive trading, since goods could now easily be transported there. In the middle of the 19th century an explosion of industrialization happened, and all kinds of factories, from engineering to breweries were established together with modern gas and water systems.