Question: how did jafar become a genie?
Answer: However, as Jafar revels in his newfound phenomenal cosmic power, he finds out too late that Aladdin has tricked him into wasting his wish on becoming a genie, since genies are not free beings, and becomes trapped in a magic lamp of his own, and the lamp is sent into the Cave of Wonders by the Genie.