Based on the short story “The Djinn in the Nightingale’s Eye” by A. S. Byatt and co-written and directed by George Miller for the screen, Dr. Alithea Binnie, played by Tilda Swinton, is an academic. She’s content with life and a creature of reason.
While in Istanbul attending a conference, she encounters a Djinn, played by Idris Elba, who offers her three wishes for his freedom. This presents two problems. First, she doubts he is real; second, because she is a scholar of story and mythology, she knows all the cautionary tales of wishes have gone wrong.
The Djinn pleads his case by telling her fantastical stories of his past. Eventually, she submits and makes a wish that surprises them both.