Episode 27
Our heroes and Sawyer arrive in Snowbelle City, and Ash is fired up to win his final badge at the freezing Gym! First up is Wulfric’s Abomasnow, whose Ability causes hail to fall on the already-icy battlefield! After Hawlucha fights through it to claim the first victory, Wulfric sends out Avalugg—who slowly recovers from damage when it’s hailing. It’s an icy combo that proves to be very effective, as Avalugg knocks out Hawlucha and Talonflame, and even defeats Greninja after it syncs up with Ash to become “Ash-Greninja” (as Bonnie calls it). Ash is devastated, and while his Pokémon heal up, he goes off on his own to recover…
Aired 19/05/2016EP 27 - Episode 27

Pokémon the Series: XYZ
The journey of Satoshi and his friends through the Kalos region continues! After Satoshi obtains his seventh gym badge, the group is moving toward the next town when Eureka discovers a mysterious Pokémon resting in her pochette. Soon given the name Puni-chan, it is one that even Satoshi and Serena's new Pokémon Zukan cannot identify. However, it quickly becomes apparent that Puni-chan is the target of a mysterious group clad in bright red suits known as Team Flare, aiming to capture the new Pokémon to further their agenda. But when Satoshi and the gang realize that the enigmatic organization has no intention of treating Puni-chan with any decency, they take a stand in opposition to Team Flare's plans, daring to fight back.
With Gojika's predictions looming above them, Satoshi aims for his final gym badge while Serena contests for her last Princess Key in order to be able to compete at the TriPokalon Master Class. But as Team Flare begins to move in search of the mysterious Z, the stories of Pokemon XY and Pokemon XY: Mega Evolution cross paths as Satoshi and his friends, along with Team Rocket, get caught up in a scheme that could put Kalos in great danger.
(Source: MAL Rewrite)