

The ponies of Equestria prepare for their first Friendship Festival, overseen by Princess Twilight Sparkle in Canterlot. The festivities are interrupted by an invasion of monsters commanded by the broken-horned unicorn Tempest Shadow, who uses magical orbs to petrify Twilight's fellow princesses. Princess Celestia gives Princess Luna incomplete instructions to seek help from "the queen of the hippo" before they are both petrified. Twilight flees the city alongside her five pony friends – Pinkie Pie, Rainbow Dash, Rarity, Applejack, and Fluttershy – and her assistant dragon Spike, and the group begins their search for the "hippos". Tempest pursues Twilight under the orders of her superior, the Storm King, who requires the magic of all four princesses to empower his mystical Staff of Sacanas, and promises in exchange to restore Tempest's horn. Twilight's group travel to the desert city of Klugetown, where a feline con artist named Capper offers to escort them, secretly intending to sell them to settle a debt. As Capper begins to develop a genuine friendship with them, Twilight discovers an atlas that reveals the "hippos" to be hippogriffs, exposing Capper's treachery. When Tempest arrives, the group evade her aboard a delivery airship run by birdlike pirates, whom Rainbow Dash persuades to take them to the hippogriffs' kingdom on Mount Aris. In celebration, Rainbow Dash performs a Sonic Rainboom that inadvertently gives their location away to Tempest, forcing the group to reach Mount Aris in a makeshift hot air balloon. While exploring the hippogriffs' deserted kingdom, the ponies are saved from drowning in an underwater cavern by the seapony Princess Skystar, who leads them to her undersea home of Seaquestria. Skystar reveals her kind to be the hippogriffs, transformed by a magic pearl used by her mother, Queen Novo, to hide from the Storm King. When Novo denies them the pearl to use against the Storm King, Twilight desperately attempts to steal it while letting her friends unknowingly distract the seaponies. Her plan backfires when she triggers an alarm before Pinkie can persuade Novo to give them the pearl, resulting in the entire group getting banished to the surface. Abandoned by her friends after an argument, Twilight is kidnapped by Tempest, who gains her sympathy upon revealing how the loss of her horn caused her own friends to shun her for her dangerously unstable magic as a filly. Meanwhile, Spike alerts the ponies to Twilight's capture, and they are joined by Capper, the pirates, and Skystar to rescue her. In Canterlot, Tempest delivers Twilight to the Storm King, who absorbs her and the other princesses' magic into his staff. When Twilight's friends infiltrate the city and defeat the Storm King's guards, he conjures a tornado with the staff, betraying Tempest as well. Twilight saves Tempest and reconciles with her friends, who help her take the staff and end the storm. The Storm King hurls a magical orb at the group to petrify them, but Tempest jumps in his way, turning them both into stone. The Storm King's body falls and shatters, while the group use the staff's magic to revive Tempest, who restores the princesses and the damaged city by returning the stolen magic. The Friendship Festival resumes, and the ponies celebrate with all of the allies Twilight's group have made on their adventure. Encouraged by Twilight, Tempest joins in by producing a fireworks display with her broken horn, and happily accepts the group's friendship.