What does "elegy" mean?

Elegy: A mournful or plaintive poem; a funereal song; a poem of lamentation. Shak.

Sources