The opera's version of the story is set in China and involves Prince Calaf, who falls in love with the ice cold Princess Turandot. To obtain permission to marry her, a suitor has to solve three riddles; any wrong answer results in death. Calaf passes the test, but Turandot still refuses to marry him. He offers her a way out: if she is able to learn his name before dawn the next day, then at daybreak he will die. In the original story by Nizami, the princess sets four conditions. The first is "a good name and good deeds", and then the three challenges.