An elegy is a type of poem that has a mournful or sad tone and is often written to express grief or lament the loss of someone or something. It does not necessarily have to be set in the countryside or celebrate heroic deeds, but it typically does not conform to a fixed pattern of lines. The structure of an elegy can vary, but it usually has a formal and reflective tone that expresses sadness or sorrow.