Nidhogg (Old Norse Níðhöggr, literally “Curse-striker” or “He Who Strikes with Malice”) is the foremost of several serpents or dragons who dwell beneath the world-tree Yggdrasil and eat its roots. This is highly injurious to the tree, which holds the Nine Worlds of the cosmos. Nidhogg’s actions have the intention of pulling the cosmos back to chaos, and he, along with his reptilian cohort, can therefore surely be classified among the giants (or, as they were called in pre-Christian times, “devourers”).
From this it would make sense for Nidhogg to have a prominent role in Ragnarok, the cyclically recurrent event in which the giants succeed in destroying the cosmos. This does indeed seem to be the case. In one especially important Old Norse poem (the Völuspá or “Insight of the Seeress”), Nidhogg is described as flying out from beneath Yggdrasil during Ragnarok, presumably to aid the giants’ cause.
Later in the same poem, Nidhogg is also said to preside over a part of the underworld called Náströnd (“The Shore of Corpses”) where perjurers, murderers, and adulterers are punished. However, this conception of the afterlife as marked by moral retribution is totally foreign to the indigenous worldview of the Norse and other Germanic peoples, and must be an instance (one of many) of Christian influence upon the poem.
If you enjoyed this article, check out my book on the worldview at the heart of Norse mythology, The Love of Destiny: The Sacred and the Profane in Germanic Polytheism.
 The Poetic Edda. Grímnismál, stanzas 32-35.
 The Poetic Edda. Völuspá, stanza 66.
 Ibid. Stanzas 38-39.