The common medieval subject, included in the Golden Legend and other sources, shows Saint Anthony being tempted or assailed in the desert by demons, whose temptations he resisted; the Temptation of St Anthony (or Trial...) is the more common name of the subject.
However, the Martin Schongauer composition (copied by Michelangelo) probably shows a later episode where St. Anthony, normally flown about the desert supported by angels, was ambushed and attacked in mid-air by devils.
The earliest work to depict Saint Anthony being assaulted by demons is a wall painting in the atrium of Santa Maria Antiqua of the 10th century.
In the modern era the theme has been treated by the Spanish painter Salvador Dalí and the French author Gustave Flaubert, who considered his 1874 book The Temptation of Saint Anthony to be his masterwork.
Various artists produced paintings on this subject, and the contest was won by Max Ernst, whose work was duly shown in the film.