Complex sentence: Shundi was threatned of an attack by the hostile neighbour King of Halla only to be saved by the magical powers of Goopy and Bagha who in turn were married to the princesses of the respective kingdoms of Shundi and Halla.
Split into simpler sentences: Shundi was threatned of an attack by the hostile neighbour King of Halla. They were only saved by the magical powers of Goopy and Bagha who in turn were married to the princesses of the respective kingdoms of Shundi and Halla.