Gay was raised by his uncle after his parents died in 1694 and 1695. His career was erratic - some of his work was very popular during his lifetime (the Beggar's Opera and the libretto for Handel's Actis and Galatea), and some of it flopped; but his influence on English literature, particularly through the Beggar's Opera, has been considerable.