Prince of Persia: The Forgotten Sands for the Nintendo DS is a handheld 2D side-scroller installment to the franchise, in a similar fashion to the series' previous DS installment, Prince of Persia: The Fallen King. The game is entirely stylus-controlled, featuring no button use. To maneuver, the player must hold the stylus in the direction relative to the Prince character where the player wants to move. To climb, the player must hold the stylus part way up a wall, to jump, the player holds the stylus at the other end of the gap. Combat in the game is stylus-controlled as well.
The plot of the DS version centers on the Prince character being abducted by a cult. This cult brings the Prince to an ancient temple in India and uses his sword, which houses the Djinn queen Razia, to obtain a blood sacrifice from him. Using the Prince's royal blood and Razia's Sand powers, the cult liberates an evil force locked in the temple, erasing the Prince's memory and stealing Razia's powers in the process. The temple collapses as the evil is freed, and the Prince falls into a pit. At the bottom, Razia's spirit leads the Prince to his weapon, and tells him that the ceremony he was abducted for is the reason why he doesn't remember anything. She informs him further that he is a prince, and that he and Razia are longtime friends, which the Prince believes. He decides to follow her instructions warily, as he doesn't remember anything himself. They escape from the bottom of the collapsed temple and Razia tells the Prince that their quest must be to hunt down and kill the three members of the cult who abducted them.
The three cultists stole the Prince's memories and Razia's Sand powers during the ceremony and therefore mutated into gigantic Sand monsters. Razia says killing them will give the Prince back his memories, and Razia her powers. The Prince and Razia then set out across India to hunt down and kill the three cult members, which they succeed in doing. With all their powers and memories restored, they now set out to hunt down and kill the resurrected leader of the cult, who is slowly conquering the world, starting with the conquest of Babylon. They succeed in killing him, but at the cost of Razia's life. The Prince throws the sword in which Razia resided off of the top of a tower in Babylon, and it dissolves in the desert sand.