He escapes, defeats the Vizier and saves the Princess. In Prince of Persia 2: The Shadow and the Flame (1993), the Prince is banished by a disguised Jaffar, ending up rediscovering his homeland and retrieving a magical power which defeats Jaffar for good. In Prince of Persia 3D (1999), the Prince must again rescue the Princess, this time from a former betrothed. The Sands of Time sequence covers the Prince, as the son of Persian king Sharaman, from his early years through events which shape him into a leader. In Prince of Persia: The Sands of Time (2003), he accidentally releases the Sands of Time after they are looted from an Indian city with an artifact called the Dagger of Time. With Farah, princess of the city, he attempts to contain the Sands before they infect the world, while the treacherous Vizier seeks to use them to achieve immortality. Farah dies during the adventure, but the Prince uses the Sands to reverse time, killing the Vizier and returning the Dagger to Farah. This action causes a being called the Dahaka to begin hunting the Prince for distorting history. By the events of Warrior Within (2004), seven years after The Sands of Time, the Prince is determined to undo the making of the Sands. He confronts the creator of the Sands, Kaileena the Empress of Time, and bonds with her as he learns her identity. He ultimately defeats the Dahaka and takes Kaileena to Babylon. In The Two Thrones (2005), the Prince and Kaileena find that his actions in Warrior Within undid the Vizier's death. The Vizier kills Kaileena with the Dagger of Time, absorbing the Sands and turning into a god-like monster. The Prince is also infected by the Sands, manifesting an alternate Dark Prince personality. During his adventure, he reunites with Farah, accepts responsibility for his people after finding Sharaman's body, and eventually kills the Vizier. Kaileena's spirit removes the Sands and Dagger from the world, and in a final mental confrontation the Prince overcomes the Dark Prince's influence. Other stories from the seven years between The Sands of Time and Warrior Within are told in Battles of Prince of Persia (2005) and The Forgotten Sands (2010), showing events which changed the Prince's outlook on the world. In the reboot Prince of Persia (2008), the Prince is not royal by birth, but instead his story and trials are destined