After being deposed as Warchief of the Horde in Battle for Azeroth, Sylvanas Windrunner travels to Icecrown Citadel in the Scourge-infested wastes of Northrend, and confronts the reigning Lich King, Bolvar Fordragon. Taking the Lich King's Helm of Domination from him, she tears it in two, shattering the veil between realities and opening a portal to the Shadowlands, Azeroth's afterlife. The Shadowlands have become warped in function during recent times. The Maw, a place in the afterlife reserved for the most sinful souls, is now absorbing all souls.
The spell called "spiritual projection" or "astral projection" brings the caster to the Twisting Nether instead of the Shadowlands; and the Twisting Nether is also referred as "realm of ghosts". However, both planes don't appear to be related, as Outland is floating on the Twisting Nether, but the Shadowlands can be reached in Outland in The Burning Crusade.
The Shadowlands were originally intended to be a fully playable zone in World of Warcraft, designed for high-level play. The idea was that as deceased characters made their way back to their corpses, they'd see high-level players battling creeps in the area, which would inspire lower level players to increase their character level so they could experience the zone for themselves.
The origins of the Shadowlands remain uncertain, but they have existed ever since mortal life first arose in the physical universe. They span all worlds, including Azeroth, on which Icecrown serves as an anchor to the Shadowlands. There are those who believe mortal souls are drawn into this dark place when they die, remaining there forever. Others hope their souls will go on to a brighter place rather than languish for eternity within the cold confines of the Shadowlands.