Xerxer is a wise Pokemon who knows the best strategies in battling. Xerxer telepathically communicates with Y and offers her advice. Xerxer seems to have a hatred of its rival Yveltal, and is first shown battling it. It is wary of Zygarde, as it is neither a friend or foe. Xerxer is also friends with AZ and communicates with him.
Xerxer first appeared battling against Yveltal in Vaniville Town. It was later seen talking telepathically to AZ, wishing to join a trainer. Later, it turned out the trainer is Y. After battling alongside Xerxer, Y decided to keep it for herself and nicknamed it Xerxer. When Malva prepared to battle Xerxer with her Yvetal, Xerosic told her to stop, as the two Legendary Pokémon's powers were evenly matched. Xerxer agreed with this, and flew away with Y and her friends, along with some of the Gym Leaders.
Xerxer was stolen by Essentia from Y, who was knocked unconscious. She possessed Xerxer and tried to force it to attack Y and her friends. However, because Xerxer was a legendary Pokemon, Essentia did not have full control over Xerxer. Therefore, Xerxer was able to warn Y of attacks. Using her Absol, Solsol, she was able to Mega Evolve him to fend of Xerxer's attacks. X was able to destroy the device possessing Xerxer, and it became free of Essentia. Her plan failed, Essentia escaped.