The story details one night in the life of Anthony the Great where Anthony is faced with great temptations, and it was inspired by the painting, which he saw at the Balbi Palace in Genoa. Gustave Flaubert spent practically his whole life working on this text.