A hundred years ago, the town of Alamos was shaped around an incredible workshop of sound and sight, built by the restless architect Godey. He designed an enormous network of musical instruments housed within the Space-Time Towers, a place where music and mystery could bend space itself. In his diary, a chilling nightmare was written down and later found by his great-grandson, the scientist Tonio Koji Yamamoto. The entry warned that two powerful beings that should never meet would cross paths in a space-time rift, their fury capable of enveloping the town and bringing it to collapse. In a garden crafted by Godey, a nightmare-born Pokemon named Darkrai Koji Ishizaka opened its heart to a girl named Alicia Mamiko Noto, inviting the shadowy presence to stay and guiding the dream toward a future plan. Godey’s warning drove him to pursue a music disc for Oración, a song believed to have the power to calm the fiercest rage, kept for a time when it might be needed again.
Years later, a tangible echo of that prophecy arrives: Darkrai saved Alicia’s granddaughter Alice Rosa Kato after she tripped and fell from a cliff, a moment that links the old dream to a living present. The city’s quiet is broken when disturbances ripple through the air as Palkia, the controller of space, and Dialga, the master of time, clash in the space between dimensions around Alamos Town. The chaos draws Ash Ketchum Rica Matsumoto, Brock Yuji Ueda, and Dawn Megumi Toyoguchi into the middle of a dramatic contest—Dawn’s next Pokémon Contest held inside the Space-Time Towers—while the town trembles under the collision of two legendary forces. Baron Albert Koichi Yamadera suspects that Darkrai is behind the disturbance; the confrontation spills into the square, where Darkrai unleashes a nightmare that traps many Pokémon and pushes Ash into a terrifying dream where Palkia targets him.
As the real fight rages, Palkia, wounded and seeking concealment, slips into the town and moves it into a different dimension with no easy escape. Darkrai reappears in the town square and seems to command the scene, telling someone to leave. Baron Albert, joined by Ash, Dawn, and other Trainers, fights back, while Darkrai intensifies its nightmares to protect its hidden objective. In this tense moment, Tonio finds Palkia resting between the towering structures, and Darkrai makes another move to strike. Ash grasps a crucial insight: Palkia is the very entity Darkrai had warned to go away, and the nightmare’s warning was meant for him.
Just as the danger peaks, Dialga arrives, opening fire on both giants before darting away again. The clash between Palkia and Dialga shakes the towers and threatens to erase the entire dimension. Alice discovers the Oración disc, and Ash and Dawn climb toward the music disc player on the Space-Time Towers’ skybridge, while Brock helps evacuate the townspeople to safety. Tonio reveals a devastating truth: if Palkia and Dialga collide once more, the dimension will be destroyed. When the two clash again, Darkrai crosses the line between attacks and creates a protective sphere around itself, freezing Palkia and Dialga in place. After a brutal struggle, they break free and combine their might to strike Darkrai, causing it to disintegrate.
With the immediate threat gone, the towers lose their charged energy. Pikachu Ikue Otani and Dawn’s Pachirisu unleash their electric power, charging the Space-Time Towers as they play the Oración disc. The song’s calming power succeeds in soothing the two rampaging legends, and Dialga pulls away while Palkia’s wounds mend. Ash and Dawn speak to Palkia with a plea to restore what was lost, and the town is returned to its former state as the people, along with their Pokémon, rejoice and go home. In the quiet that follows, the group mourns Darkrai, yet they also acknowledge its role in the struggle, finding Darkrai standing atop the Space Tower as if watching over the town one last time.
In the end credits montage, Dawn’s performance in the contest remains undefeated by ribbons, a small, bittersweet note in a tale that ends with the town restored and the mystery of the Space-Time Towers lingering softly in the air.