Complex sentence: At the end of the 19th century, several railways were completed, which prompted the arrival of streetcars.
Split into simpler sentences: At the end of the 19th century, several railways were completed. This prompted the arrival of streetcars.