This is how Umarak's defeat goes in My Little Pony Bionicle: A Canterlot Wedding.
[Umarak spits Twilight out]
Twilight Sparkle: Shining! Cadance!
Shining Armor: Twily!
Princess Cadance: I'm so glad you're okay.
Umarak the Destroyer: [laughs evilly] It's funny really. Starlight Glimmer and Wheeljack here were suspicious of my behavior all along. [puts a finger under Starlight's chin, which she gulps nervously in response to] Too bad the rest of you were too caught up in your wedding to realize those suspicions were true until the wedding rehearsal when they blew my cover.
[He knocks Starlight and Wheeljack half way across the room]
Wheeljack: Hey! It wasn't my or Starlight's fault! You fooled everyone!
[Umarak turns to the window]
Umarak the Destroyer: Hmm, I did, didn't I?
[He goes to the window grinning evilly]
Umarak the Destroyer: This day has just been perfect~
The kind of dream I had since I was a Matoran~
Every Pony I'll soon control~
Every stallion, mare, and foal~
Who says a bad guy can't really have it all~
[He chuckles darkly as Starlight and Wheeljack are helped by Twilight and Optimus]
Twilight Sparkle: Sorry, guys.
Optimus Prime: We should've realized Umarak was here the whole time.
Starlight Glimmer: It's okay.
Wheeljack: You don't have to apologize.
[Umarak holds up a small stone]
Umarak the Destroyer: Makuta, I have successfully carried out that task as planned.
[Makuta appears in the form of purple liquid in his massive shadow titan form]
Makuta: And now, I have another task for you.
Umarak the Destroyer: What must I do?
Makuta: The moment the princess tells Princess Cadance to perform her spell, you tell her it will do no good and that our minions already roam freely.
Umarak the Destroyer: Yes, master.
[He turns to the ponies, Autobots and Toa]
Princess Celestia: Your spell, Cadance. Perform your spell.
Umarak the Destroyer: That will do no good, Celestia. My and Makuta's minions already roam freely.
[They stare out of the window at Makuta and Umarak's minions attacking Canterlot]
[Princess Cadance tries to perform her spell but can't]
Princess Cadance: No! My power is useless now. I don't have the strength to repel them.
Shining Armor: My love will give you strength.
Umarak the Destroyer: [chuckling] What a lovely but absolutely ridiculous sentiment.
[The two lovers lock their horns together and created a magic force that pushes Umarak out of the window and the minions away from the kingdom and sends Umarak and the minions to parts unknown]
[Celestia and Luna approach]
Tahu: Twilight, thank goodness you're--ew, you're covered in saliva.
Twilight Sparkle: I know it's disgusting. I'll wash it off later.