Complex sentence: For some years he was professor at Landshut, then professor at Bonn for two years, 1819--21, but the rest of his life was passed as professor of law and jurisprudence at Heidelberg.
Split into simpler sentences: For some years he was professor at Landshut, then professor at Bonn for two years, 1819--21. For the rest of his life he was professor of law and jurisprudence at Heidelberg.