Location of the Purifying Cave on the Water Continent. (Highlighted blue underneath)
The Purifying Cave (Japanese: じょうかの洞窟Purifying Cave) is a dungeon in Pokémon Super Mystery Dungeon that is located on the Water Continent. It is unlocked during Chapter 11 of the story, and is also the third and final story dungeon of the epilogue.
Spoiler warning: this article may contain major plot or ending details.
During the epilogue, after B15F, the hero arrives at the cave's pit, finding an unconscious Mew, along with Nuzleaf and the Beheeyem. Nuzleaf apologizes to the hero, claiming that this was done to prevent Dark Matter from ever coming back, and Mew begin glowing with light and seemingly fade away. Reminded of the partner's departure, the hero refuses this, not wanting to say goodbye again. Their Harmony Scarf then starts to glow, combining with the light surrounding Mew, which allows the partner to be resurrected.
Ampharos, Mawile, and Xatu walk in, admitting that the "kidnapping" was all a set-up—a test to prove the hero's desire for the partner's return, and that Xatu had already foreseen the events. With this, the Expedition Society, reunited with the partner, went back happily, while Nuzleaf and the Beheeyem are allowed to stay at Nuzleaf's old home in Serene Village. Mew returns to the Mystery Jungle, but remains a usable ally in expeditions.