Complex sentence: The South Wales coalfield attracted huge numbers of people from rural areas to the valleys; and many rows of terraced housing were built along the valley sides to accommodate the influx.
Split into simpler sentences: The South Wales coalfield attracted huge numbers of people from rural areas to the valleys. This meant that many rows of terraced housing were built along the valley sides to accommodate the influx.