An elegy is a poem that laments the death of an individual. It usually ends in some sort of consolation.