Complex sentence: When the smaller railway stations closed in the middle of the 20th century these hotels lost their main source of business they became single room occupancy facilities serving the city's poor and transient.
Split into simpler sentences: When the smaller railway stations closed in the middle of the 20th century, these hotels lost their main source of business. They became single room occupancy facilities serving the city's poor and transient.