After the destruction of Beleriand in the War of Wrath, the remaining Ñoldor repented of their rebellion and many returned to Eldamar along with some of the Sindar. The Elves that chose to remain in Middle-earth founded peaceful realms. Most of the Ñoldor lived in Lindon with Gil-galad, the High King of the Ñoldor. Hundreds of years later Celebrimbor, the last of the House of Fëanor, founded a new Ñoldorin realm called Eregion. The Sindar joined also with Gil-galad in Lindon and few went beyond the Misty Mountains into Wilderland, becoming leaders of the Silvan Elves in places such as Lothlórien and Greenwood the Great.
The Elven realms flourished for over one thousand years until SA 1200 when Sauron, under the guise of a messenger from the Valar named Annatar, appeared out of the east to offer knowledge to the elves. Gil-galad mistrusted him and barred him from his kingdom. Sauron then approached Celebrimbor and the Elves of Eregion, and against Gil-galad's advice they accepted him and his knowledge.