Complex sentence: The Union City & Titusville Railroad was built in 1865, which became part of the Philadelphia & Erie Railroad in 1871.
Split into simpler sentences: The Union City & Titusville Railroad was built in 1865. That line became part of the Philadelphia & Erie Railroad in 1871.