Complex sentence: It was the first railway to cross the river at Ayr: at that time the main line from Glasgow terminated at a station north of the river.
Split into simpler sentences: It was the first railway to cross the river at Ayr. At that time the main line from Glasgow terminated at a station north of the river.