During the epilogue, after fighting through the dungeon's fifteen floors, the player arrives at the cave's pit, where they find an unconscious Mew, along with Nuzleaf and the Beheeyem. Nuzleaf apologizes to the player, claiming that they did so to prevent Dark Matter from ever coming back, and Mew begins to glow with light and seemingly fade away. Reminded of the partner's departure, the player refuses this, not wanting to say goodbye again. At this time, the player's Harmony Scarf begins glowing, combining with the light surrounding Mew, which restores the partner. Ampharos, Mawile, and Xatu appear, admitting that the "kidnapping" was all a set-up. Xatu had already foreseen the events; the set-up was a test to prove the player's desire for the partner's return. The Expedition Society, reunited with the partner, return home happily, while Nuzleaf and the Beheeyem are allowed to stay at Nuzleaf's old home in Serene Village. Mew returns home, but remains a usable ally to go exploring with.