"Ellens dritter Gesang" ("Ellens Gesang III", D. 839, Op. 52, No. 6, 1825), in English: "Ellen's Third Song", was composed by Franz Schubert in 1825 as part of his Opus 52, a setting of seven songs from Walter Scott's popular epic poem The Lady of the Lake, loosely translated into German.
It has become one of Schubert's most popular works, recorded by a wide variety and large number of singers, under the title of "Ave Maria", in arrangements with various lyrics which commonly differ from the original context of the poem. It was arranged in three versions for piano by Franz Liszt.
The piece was composed as a setting of a song (verse XXIX from Canto Third) from Walter Scott's popular epic poem The Lady of the Lake, in a German translation by Adam Storck (1780–1822), and thus forms part of Schubert's Liederzyklus vom Fräulein vom See. In Scott's poem the character Ellen Douglas, the Lady of the Lake (Loch Katrine in the Scottish Highlands), has gone with her exiled father to stay in the Goblin's cave as he has declined to join their previous host, Roderick Dhu, in rebellion against King James. Roderick Dhu, the chieftain of Clan Alpine, sets off up the mountain with his warriors, but lingers and hears the distant sound of the harpist Allan-bane, accompanying Ellen who sings a prayer addressed to the Virgin Mary, calling upon her for help. Roderick Dhu pauses, then goes on to battle.