Dem Andenken Petőfis (In Petőfi's Memory; its original Hungarian title was "Petőfi szellemének") is a piece for piano by Franz Liszt, who was a contemporary of Sándor Petőfi. Written in 1877,[1] it is an elegy, like many of Liszt's works. This was written in memory of the Hungarian nationalist and poetSándor Petőfi, whose poemsLiszt sometimes set to music.