Abis Mal uses a time machine to go back in time to become the Sultan of Agrabah. If he succeeds Jasmine will never have existed.