Princess Jasmine is not ready to marry Zaffar. In the market, she meets Aladdin, who helps her but is imprisoned. Jojo helps Aladdin escape, and in a cave they find a magic lamp containing a genie who grants wishes. With his wishes, Aladdin becomes a prince and wins Jasmine's affection, but on their wedding day Zaffar tries to force Jasmine to marry him instead. Aladdin stops the wedding and has Zaffar taken away so he and Jasmine can marry, living happily ever after with the now-freed genie.