In 2013, Sélestat had a total population of 19,332, which makes it the eighth most populous town in Alsace. During the Middle Ages and the Renaissance it was the third largest city in the region, after Strasbourg and Colmar, and it is ranked the third commune in Alsace for cultural heritage. Sélestat was founded in the 8th century as a port on the Ill and it experienced a long period of prosperity thanks to the trade in wine and a thriving religious and cultural life. It gradually declined after the Reformation and the French conquest in the 17th century. The town eventually experienced a new demographic growth in the second half of the 20th century when it became a small industrial and cultural centre.