Complex sentence: The castle regained purpose in the mid- 19th century under the ownership of Prince Lieven, though not as a military fortification but as a romantic addition to a park.
Split into simpler sentences: The castle regained purpose in the mid- 19th century under the ownership of Prince Lieven. Not as a military fortification but as a romantic addition to a park.