Schubert wrote it in March 1824, after a year of serious illness and money worries. It was first played privately in Vienna in early 1826, and published in 1831, three years after his death.
The nickname comes from the second movement, a theme and five variations built on his 1817 song “Der Tod und das Mädchen” (D. 531), a setting of a poem by Matthias Claudius. The theme borrows from the song’s piano part rather than its vocal line. A restless triplet figure keeps returning throughout the quartet, and the finale is a fast tarantella.