Complex sentence: Friedrich Wilhelm, meanwhile, had married Anna of Russia, but died suddenly, leaving Kettler the last candidate to the throne of Courland from the House of Kettler.
Split into simpler sentences: Friedrich Wilhelm, meanwhile, had married Anna of Russia. He died, leaving Kettler the last candidate to the throne of Courland from the House of Kettler.