Felix Mendelssohn's Octet in E-flat major, Op. 20, was composed in the autumn of 1825 and completed on October 15, when the composer was 16. He wrote it as a birthday gift for his friend and violin teacher Eduard Ritz (1802-1832); it was slightly revised in 1832 before the first public performance on 30 January 1836 at the Leipzig Gewandhaus. Conrad Wilson summarizes much of its reception ever since: "Its youthful verve, brilliance and perfection make it one of the miracles of nineteenth-century music."
The scherzo, later scored for orchestra as a replacement for the minuet in the composer's First Symphony at its premiere, is believed to have been inspired by a section of Goethe's Faust entitled "Walpurgis Night's Dream". Fragments of this movement recur in the finale, as a precursor to the "cyclic" technique employed by later 19th-century composers. The entire work is also notable for its extended use of counterpoint, with the finale, in particular, beginning with an eight-part fugato.