Some examples of elegy poems are ""O Captain! My Captain!" by Walt Whitman, "In Memory of W. B. Yeats" by W. H. Auden and "Fugue of Death" by Paul Celan. An elegy poem is generally written as a memorial after a death.
Elegy poems are generally distinctive from odes and other poetic forms in that they follow a specific structure. First they express the speaker's grief at the death, then praise the dead, then offer consolation. Other examples of the form are "For the Union Dead" by Robert Lowell, the "Duino Elegies" by Rainer Maria Rilke and "The Changing Light at Sandover" by James Merrill.