Jafar was once the royal vizier of Agrabah and the Sultan's most trusted adviser. However, he harbored a wicked desire to reign over Agrabah himself, attempting to locate the Genie's lamp and use the wishes to put himself upon the throne. Though initially successful in his endeavors, Jafar was soon thwarted after his enemy, Aladdin, goaded him into wishing to become a genie. Because of the limitations inherent to genies, Jafar, along with his parrot Iago, was sealed in a lamp, ending his reign as quickly as it had started.
Aladdin: The Return of Jafar
In the sequel, Jafar's lamp is found by the thief Abis Mal, setting the malevolent genie free. Immediately, Jafar sets into motion a plan to exact revenge upon Aladdin. However, at the hands of Aladdin, his loved ones, and the recently redeemed Iago, the lamp binding Jafar is destroyed in lava, thus vanquishing the evil genie once and for all.