Complex sentence: He practiced law in Maryland from 1854 until 1858, when he moved to New York.
Split into simpler sentences: He practiced law in Maryland from 1854 until 1858. When he moved to New York.