By the beginning of the 18th century, life in the city of Edinburgh (today's Old Town) was overcrowded and unsanitary.
Edinburgh was overcrowded and dirty in the 18th century.
Edinburgh was sparsely populated by the 18th century.