<P> The Soul Gems first appear in The Power of Warlock . All six appear together for the first time in the second "Thanos War" storyline in Avengers and Marvel Two - In - One annuals . Thanos harnesses their latent energies to power a giant gem to extinguish every star in the universe . </P> <P> In the third volume of the Silver Surfer title, the Surfer refers to the gems as "Soul Gems" for the first time . They are gathered by the Elders of the Universe, who intend to use their combined power to drain Galactus of his lifeforce and then recreate the universe with themselves as the oldest beings in it (Galactus was the last survivor of the Universe that existed prior to the birth of the current Marvel Universe). This plot is thwarted by the Silver Surfer, and several Elders and the gems are lost in a black hole; Galactus consumes some of the other Elders . In a follow - up story, Galactus is poisoned by the Elders he consumed . Silver Surfer, Mr. Fantastic, and the Invisible Woman journey through the black hole to recover the gems . Invisible Woman becomes possessed by the sentient Soul Gem, awakening her evil Malice persona . She is later subdued, and the gems are used to remove the Elders from Galactus' body . The Elders later reclaim the gems . </P> <P> In the limited series The Thanos Quest Thanos refers to the entire set as "Infinity Gems" for the first time . Thanos systematically subdues the Elders one by one to gather all six gems . Once in his control, he sets the gems into a gold glove (the left gauntlet of his customary attire) which he refers to as the Infinity Gauntlet . Thanos explains the origin of the gems to the Runner, one of the Elders of the Universe: the set are the remains of a once nigh omnipotent but lonely being . Unable to endure eternity alone, the being committed suicide, although a fraction of its essence remained and became the Infinity Gems . </P> <P> Thanos becomes nearly omnipotent, and challenges the Silver Surfer and Drax the Destroyer, handling the heroes with ease . He reclaims his ship Sanctuary II from its current captain, his granddaughter Nebula . He burns her nearly to death, but uses the Gems to keep her suspended between life and death in immortal agony; he claims this is a "work of art", "a monument to the insanity of Life and Death denied". Mephisto joins Thanos as an adviser . The Silver Surfer travels to Earth to warn Earth's superheroes of the threat of Thanos and the Gems, setting the stage for The Infinity Gauntlet limited series . </P>

How does thanos get the infinity stones in the comics