The film is infused with his personal experience. It opens in Toledo, Spain, a city that so impressed the young Buñuel that in 1923 he founded a group called the "Order of Toledo". When he was a student in Madrid, he saw a dead woman's hair 'growing' from a tomb in the moonlight. The sight made a strong impression on him and he used it in this film some fifty years later. In the 1940s, when he lived in Los Angeles but had no prospects of film work, he wrote down an idea about a missing girl whose parents fruitlessly search for her while she is beside them; invisible and yet not invisible. When the Carmelite monk says "If everyone prayed every day to Saint Joseph, peace and quiet would prevail", this was a quote that had stuck with Buñuel when he was visiting a monastery in the 1960s. One of the most poignant biographical details used in "The Phantom of Liberty" is the sequence when the doctor tries to avoid telling his patient that he has cancer of the liver. This was based on Buñuel's experience of being told that he had a cyst on his liver (he died of cancer of the liver in 1983).