Question: I heard that [Prince of Persia: The sands of time movie](http://en.wikipedia.org/wiki/Prince_of_Persia%3a_The_Sands_of_Time_%28film%29) was based on the [Prince of Persia: The sands of time video game](http://en.wikipedia.org/wiki/Prince_of_Persia%3a_The_Sands_of_Time). However in the wiki article it is said:

> 
> Prince of Persia: The Sands of Time is a film loosely based on the game.
> 
> 
> 

I also found that the writers of the movie are Jordan Mechner, Boaz Yakin, Doug Miro. I am not aware of the story of the game. So is the story of the film not the same as that of the game? Also I could not see any attribute in the film to the game. So did the producers not buy the story legally from Ubisoft? What is the back story?

Answer: 
As I commented, the story of the film only loosely has ideas from the game like the setting and some characters.

Judging solely from my experience playing the game and the summary from [Wikipedia](http://en.wikipedia.org/wiki/Prince_of_Persia:_The_Sands_of_Time_(film)), there are many more differences than I realized.

To start, the prince is nameless in the game, and he is an actual prince, not an orphan brought into the king's court, nor does he have any siblings at all, nor does he have a princess selected out. In fact, the girl you meet in the game is but a lowly citizen that you meet during the adventure who in turn, helps you to complete the game.

The reason his father dies in the game is because, after raiding a city, they loot the Sands of Time containing the Dagger of Time. The kingdom is then betrayed by the Vizier. He tricks the prince into releasing the sands, killing almost everyone around the kingdom by turning them into fearsome sand beasts, including your father. The entire plot of the game revolves around collecting enough of the Sands of Time in order for the Prince to revert time back to the moment he released them, and to stop this action in order to save his kingdom.

Instead, the movie focuses on more of a plot of deception from within the kingdom. Dastan, who is essentially the Prince, is being betrayed by his Uncle Nizam for the throne. Nizam realizes that he can use the dagger to prevent the Prince from being the king of Persia.
As an addition to *Tyler*'s answer, while the story, the locations, the characters and their particular relationships are different from the game, there are still many general similarities in the story development of both the movie and the video game, apart from the obvious presence of the *"Sand of Time"*, the dagger and the *"Prince of Persia"* himself:

Similar to the movie the *Vezier* (though not being related to the *Prince*'s family) more or less persuades the *Prince*'s father to conquer a realm for more or less normal reasons (game: wealth and honor, movie: preemptive attack) just to secretly get his hands on the *Sand of Time*. The *Prince* in turn tries to impress his father, and steals the *Dagger of Time* during this attack (not knowing what it can do), much to the dismay of the *Vezier*'s evil plans.

On his way to correct things (though in the game everybody is dead/evil and in the movie he is merely banned/wanted for betrayal), he meets a girl who in the end knows much more about the *Sand* and the *Dagger*. She wants to get her hands on it in order to correct things, while the *Prince* is rather stubborn, doesn't trust her and wants to do things his own way by keeping the dagger getting both into conflict.

At the end, they manage to find the source of the *Sand of Time*, and by reuniting it with the *Dagger*, turn back the time to the start of the adventure. The *Prince* gets the chance to prevent all those evil things happening, and just hints at the girl (who has no memory of her adventure in the other timeline) as to what actually happened.

So while the story is quite different, major plot elements along with the general personalities and relationships of the major characters are not that dissimilar between the movie and the game.