Twilight, Rainbow Dash, Rarity, Fluttershy, Pinkie Pie, AppleJack, Lilo, and Sofia stayed behind the gates until the path was clear so they could take on Nightmare.

At the same time, Sweetiebell, Applebloom and Scootaloo were fighting a handful of Bad Dreamers when one went for Applebloom.

"Applebloom. Ma sister's gonna ge' killed!" AppleJack yelled.

Sweetiebell used her horn to blast the Bad Dreamer away, saving Applebloom's life.

"Thanks Sweetiebell!" Applebloom thanked her.

"Aloha... as in goodbye!" Gantu said to another handful of Bad Dreamers before blasting them with his plasma cannon.

The eight Elements saw their chance and ran straight to Nightmare, who towered above them.

"Okay, everyone. Let's do this thing!" Sofia said.

The Ponies powered up and formed a circle around Lilo and Sofia, who joined hands.

A huge rainbow colored heart surrounded them, and they lifted up into the air until they were face-to-face with Nightmare.

Nightmare shot a huge red laser from his mouth at the eight Elements, who shot a pink laser back at him.

The pink turned to rainbow, and then to yellow to represent Unity.

"You may be a powerful monster, Nightmare, but there's one thing you can't beat: The Power of Unity from the Eight Elements of Harmony!" Lilo declared.

Nightmare was shrunk into nothing, causing his army to turn into dust, and the ruined kingdoms restored to normal (the first kingdom was actually Far Far Away from the 'Shrek' series), and everyone that was captured been freed.

The eight Elements floated down to the ground, all smiling happily at one another.

"Well done everyone!" The Grand Councilwoman said, coming up to them.

Everyone cheered at their victory.

"Myrtle, Yuki, Crystal and Elena did very well representing what is in their hearts: friendship, power, magic and independence," Pleakely said.

"It's all over now. So let's party!" Pinkie Pie suggested with balloons suddenly appearing out of nowhere.

Everyone laughed as the celebration began.