Underground

The Underground is a large region underneath the Surface of the Earth, which houses the Kingdom of Monsters. The exit from the Underground is blocked by the Barrier, which was placed by the humans ages ago. Humans access it, Frisk included, by the way of a hole in Mount Ebott. It is ruled by King Asgore Dreemurr, and formerly by his ex-wife as well, Toriel. Spanning several different climates, the Underground features the Ruins, the cold and wintry Snowdin, the wet and cavernous Waterfall, the blistery and barren Hotland, the technologically advanced CORE, and the Capital.

History
After the humans defeated the monsters in the War of Humans and Monsters, the losing faction was banished into the Underground by seven human magicians. A barrier was erected to prevent the insiders from leaving, though outsiders could still freely enter. The monsters eventually accepted their loss and lived normal lives throughout the Underground.

One day, a human named Chara walked to Mount Ebott and unfortunately tripped on a vine, causing them to fall into a pit and enter the Underground. Chara was discovered by Asriel, the son of Asgore and Toriel, and was adopted into their family. However, the human one day grew ill and eventually died from the illness, but whished to see the flowers in their home village. After Chara had died, Asriel absorbed their SOUL, becoming a powerful entity that was able to cross the Barrier, and picked up their corpse and carried it out of the Underground. However, the humans from the outside world attacked Asriel, under the assumption that he killed Chara, forcing him to return to the Underground with Chara's corpse where he succumbed to his wounds.

Since then, Asgore became vengeful for his son and plotted to escape the Underground and declare another war against humans. He declared all the humans who fall into the Underground be killed and their SOULs collected; with seven human SOULs, the Barrier could be shattered. However, the brutality of this decision disgusted Toriel enough that she relinquished her position as queen as well as her marriage to Asgore.

Asgore continued to rule the land on his own while Toriel exiled herself into the Ruins. Over time, six more humans fell into the Underground, all of which Toriel tried to shelter and care for. However, they all eventually left the Ruins and were eventually killed, their SOULs collected by Asgore.

An eighth human, Frisk, had then fallen into the Underground. Unlike the predecessors, Frisk's determination managed to carry them through many obstacles the Underground had presented, even managing to befriend or make an enemy out of many monsters. Eventually, Frisk manages to reach Asgore, where he stands before the Barrier.

Frisk and Asgore battle. The latter is defeated, after which Flowey intervenes and absorbs the six human SOULs. Frisk defeats Flowey and is somehow transported outside the Barrier after the event, where they leave the Underground. Sans then calls Frisk an tells them the fate of the Underground, which is either peaceful or grim depending on who was killed.

If Frisk manages to show mercy to each monster they fought, Asgore is stopped by Toriel and all of Frisk's friends but are then ambushed by Flowey, who proceeds to absorb the six human SOULs as well as the SOULs of all the monsters in the Underground, reverting to his true form, Asriel. However, with all the SOULs, Asriel gains compassion and ultimately loses the will to fight, instead using their power to shatter the Barrier. Having returned the SOULs, Asriel leaves knowing that he will revert to Flowey and begs Frisk to forget him, while the monsters are free to leave the Underground and live peaceful lives on the Surface.

However, if Frisk decides to kill every monster in their way and commit genocide throughout the Underground, certain monsters try to stop Frisk's murderous rampage while Alphys leads the evacuation. Upon reaching Asgore, Frisk instantly defeats him with one blow and proceeds to destroy Flowey mercilessly. It is then revealed that Frisk is under the complete control of Chara, revealing their true sinister nature, and proceeds to use Frisk to leave the Underground and destroy the world.