Dastan is a street urchin in 6th century Persia. After showing valor in battle, he is adopted by the king as his heir, so the king's two sons will not fight over the throne. He teams up with Princess Tamina to rescue the Sands of Time, a gift from the gods that controls time, from the hands of the villainous nobleman, Nizam.