In the 16th and 17th centuries, Faaborg had to compete with a considerable amount of illegal trading from other settlements along the coast. In the mid-17th century, it suffered even more from the effects of the Swedish Wars but it began to prosper as an important port in the 18th century. Corn was exported to Norway and trade increased with the Grand Duchies of Schleswig and Holstein. By the 1890s, ships from Faaborg sailed as far as the Mediterranean. In the 19th century, England replaced Norway as the main trading partner and, in the second half of the century, trade extended to China and Australia. By the end of the century, there had been a huge increase in population (from 1,000 to 4,000) and a number of light industries had been established. Many of the new inhabitants came from Schleswig and Holstein after these had been lost to Germany. They included many Jews who made Faaborg Funen's most Jewish community with its own synagogue. With 50 employees, Dansk Vin- og Konservesfabrik (wine and canning) was the main business but traditional crafts and trading continued while the harbour was also enlarged. Steamship links with Copenhagen and Southern Jutland were established and in the 1880s railway connections were ensured with the other towns on the island.