Role in the episode
When Dominus Tusk terrorizing the city of Agrabah destroying buildings, easily taking care of the city's army, and defeating Jasmine, the Sultan it took upon himself to stop the giant minotaur from devastating the entire city by donning the invincible Armor of Kileem, an evil ancestor of his family. Shortly after this, Sultan had Dominus Tusk outmatched in speed and strength. After intense battle, Tusk's horns were mounted on the wall in the Sultan's newly refurbished throne room, so it is presumed that he was killed by the Sultan, whose was being possessed by the evil spirit of Kileem. Slowly Kileem takes over the Sultan’s thoughts making the poor man plan an invasion of all the other kingdoms of the seven deserts making them part of Agrabah.
In attempt to restore the Sultan back to normal Aladdin devises a plan to force him to remove the armor. He lures Kileem to a cliff side high above a river, Genie pushes him into the river. Aladdin’s plan seem to have worked, though unknown to everyone, Kileem digs a tunnel back to shore then gets his revenge. He knocks the gang out and let the guards arrest Jasmine for treason.
Now that Kileem has taken over the Sultan's thoughts he is prepared to execute Jasmine. Just in time Aladdin saves her and challenges Kileem as he knows the statue is the source of the spirits power. Kileem storms at our hero seconds before impact, and Aladdin jumps away causing Kileem destroys his statue releasing the Sultan from his grasp. His spirit then emerges from the broken statue, then explodes into oblivion.