Abis Mal steals a magic hourglass that acts as a time machine and with Aladdin and his friends he travels back to the year where Agrabah was founded and plans for his ancestor Abnor Mal to become the Sultan to change history and Aladdin must prevent this