Orcs a mockery of Elves, and Trolls a mockery of the Ents.
Ungoliant aided the evil Vala Melkor in his attack upon the Two Trees of Valinor, draining them of their sap after Melkor had injured them. She also drained the wells of Varda, extinguishing the source of light for the world. Afterward this light persisted only within the Silmarils of Fëanor. Ungoliant helped Melkor evade the Valar by shrouding them both in her impenetrable darkness, causing blindness and confusion amongst the hosts of the Valar that attempted to intercept them.[1]
Melkor had promised Ungoliant that he would yield anything she wished in return for her aid, but betrayed this promise by attempting to withhold the Silmarils from her. This angered Ungoliant, who, having grown immensely powerful from ingesting the life force of the Two Trees, trapped Melkor in her webs. At this point he gave out a cry of such fear and intensity that it was heard in the depths of Angband, and the Balrogs rushed to the aid of their master, scourging Ungoliant with their whips of flame.[2]
Ungoliant fled to the Ered Gorgoroth in Beleriand. At some point she gave birth to Giant Spiders, including the character Shelob in The Lord of the Rings. In The Silmarillion, it is stated that when she went into hiding her hunger was so influential that she would mate with spiders only to devour them later, with her offspring to be used as food once they were fully grown.
According to The Silmarillion, Ungoliant's unremitting hunger drove her to devour herself, although an alternative sketch of Eärendil's voyage suggests that he slew her in the south.