Complex sentence: By the 1840s the population had swelled to nearly 20,000, then disaster struck when the potato crop failed and the Great Irish Famine resulted.
Split into simpler sentences: By the 1840s the population of the area had swelled to nearly 20,000. Then disaster struck when the potato crop failed and the Great Irish Famine resulted.