In the original version, Ali Baba (Arabic: علي بابا ʿAlī Bābā) is a poor woodcutter and an honest person who discovers the secret of a thieves' den, and enters with the magic phrase "open sesame". The thieves try to kill Ali Baba, but Ali Baba's faithful slave-girl foils their plots. Ali Baba's son marries her and Ali Baba keeps the secret of the treasure.