The Dante Sonata was originally a small piece entitled Fragment after Dante, consisting of two thematically related movements, which Liszt composed in the late 1830s. He gave the first public performance in Vienna, during November 1839. When he settled in Weimar in 1849, he revised the work along with others in the volume, and gave it its present title derived from Victor Hugo's own work of the same name. It was published in 1858 as part of Années de pèlerinage.
The second subject is a derivation of the notes in the first
The piece is divided into two main subjects. The first, a chromatic theme in D minor, typifies the wailing of souls in Hell. D minor is a common key for music relating to death, as evidenced by Liszt's Totentanz and the statue scene of Wolfgang Mozart's Don Giovanni. The second theme is a beatific chorale in F-sharp major, derived from the first, which represents the joy of those in Heaven. The key is also symbolic here, being the signature for other uplifting works of Liszt's, including Benediction of God in Solitude (part of Harmonies poétiques et religieuses) and Les Jeux d'eaux à la Villa d'Este (Années de pèlerinage Vol. 3, No. 4).