Robert the Devil, or The Nun, the Dun, and the Son of a Gun is an operatic parody by W. S. Gilbert of Giacomo Meyerbeer's grand opera Robert le diable, which was named after, but bears little resemblance to, the medieval French legend of the same name. Gilbert set new lyrics to tunes by Meyerbeer, Bellini, Offenbach and others.
The piece premiered at the opening of the newly rebuilt Gaiety Theatre in London on 21 December 1868. An extravaganza played on a very large scale, it ran for over 120 performances and played continuously in the British provinces for three years thereafter. It also enjoyed several revivals. The original production starred Nellie Farren in the title role – she became the company's leading "principal boy". Several of the other male roles were played by women, as was common in burlesques of the day.