Complex sentence: He was the last native king of Croatia, which became a part of the Kingdom of Hungary until 1918.
Split into simpler sentences: He was the last native king of Croatia. After his death Croatia formed a personal union with Kingdom of Hungary that lasted until 1918.