Near the end of the 18th century, Copenhagen's trade and the wealth that followed reached its so far highest level. Although the fire of 1795 destroyed about a quarter of the city and rendered 3,500 homeless, the damage was relatively quickly repaired and most of the city was rebuilt by the turn of the 19th century.