system
Given the following post, respond as if you're commenting on Reddit:
human
[The Hobbit/LotR] What happened with Erebor after The Hobbit?

Did the some of the dwarves stay behind in Erebor or did everyone just leave it?
gpt
* Dain becomes King Under the Mountain.
* Erebor becomes prosperous again.
* A few decades later, some dwarves decide they want to reclaim the much older Dwarf-realm of Moria. Balin leads an expedition there.
* It doesn't go well.
* Later still, a messenger from Sauron arrives at Erebor, asking for news about "a trifle that Sauron fancies". He promises all three surviving dwarf-rings in return for help retrieving "a little ring, the least of rings".
* Gloin leads an expedition to Rivendell to ask for advice on dealing with the messenger.
* They arrive (by chance, as Men call it) around the same time Frodo does, and the dwarves participate in the Council of Elrond. Gloin's son Gimli is sent off with the Fellowship.
* Shortly after the Battle of Pelennor Fields where the siege of Minas Tirith is broken, an army of Easterlings attack Dale and Erebor. King Dain and King Brand (Bard's grandson) die in battle, but after Sauron is defeated the Dwarves and Men of Dale are able to rout the attackers.
* Dain's son Thorin (named after Thorin Oakenshield) becomes King Under the Mountain and forms a close alliance with Aragorn's realm.