Complex sentence: After the War of the Bavarian Succession it was ceded to Austria.In the Napoleonic Wars it returned to Bavaria in 1809 and again was ceded to Austria in 1816.
Split into simpler sentences: After the War of the Bavarian Succession it was ceded to Austria. It returned to Bavaria in 1809 and again was ceded to Austria in 1816.