Complex sentence: Before Shaggy can escape, the Caliph decides to start the ceremony right away, but when the wedding cake arrives, Shaggy pigs out, and his ruse is discovered.
Split into simpler sentences: Before Shaggy can escape, the Caliph decides to start the ceremony right away. When the wedding cake arrives, Shaggy pigs out and his ruse is discovered.