Genie then sends it far into the Cave of Wonders for 10,000 years.
Aladdin, knowing he would be sealed into a lamp for eternity to do a master's bidding, holds up his black, would-be prison that appears once the wish is granted by Genie and it swallows him, pulling Iago with him inside the itty bitty space where they start arguing. At the end of the film, Aladdin, tricks Jafar into wishing he was an all-powerful genie.