In a realm where the worlds of humans and spirits coexist in parallel, divided only by the cycles of day and night, a fascinating history unfolds. In ancient times, both beings cohabited in harmony, with spirits lending assistance to humans in exchange for offerings. However, as time progressed and modernity took hold, the spirit realm underwent significant transformations. New generations of spirits emerged, some of whom found themselves disrespected by humans due to their careless actions, leading them to become vengeful and malicious.
Set in contemporary rural Thailand, the story follows a young boy named Tee, who is unexpectedly rescued by benevolent spirits, notably the female spirit Mae Nak. She intervenes just in time to save Tee from being taken by malevolent entities. That evening, Tee and his sister Gaem attend a temple fair where they catch an outdoor film screening. However, chaos erupts when the evil spirits, led by a shadowy ghost, attack the fair. In the midst of the ensuing turmoil, Tee, marked with a mysterious symbol on the back of his neck, is abducted by a spirit named Phi Yipun, who also seeks to capture Gaem. Fortunately, Gaem is saved by Nak and the formidable warrior spirit Kieow, alongside the dog spirit Thonk and a ghost named Eout.
Kieow, Thonk, and Eout encourage Gaem to venture into the spirit realm, where they convene to discuss a dire prophecy revealed by the Krasue shaman. She warns that during an upcoming solar eclipse, the malevolent spirits plan to invade the human realm, plunging it into darkness, with Tee’s mark serving as a key component in their sinister plot to siphon sunlight. While many spirits remain hesitant to join the fight against their wicked counterparts due to their age, Nak steps forward, committing to face the evil spirits until Gaem surprises everyone by urging the spirits to rescue Tee.
On their way to Bangkok, Nak shares with Gaem her deep sorrow about having lost her son long ago. Meanwhile, Tee is taken to the villainous headquarters where the fireball ghost, in charge of the sacrificial ceremony set for the following day, imprisons him. Shortly after Nak and Gaem arrive at the bustling railway station, they are joined by Kieow, Thonk, and Eout. United in their mission, they use a ghostly tuk-tuk to infiltrate the fireball ghost’s stronghold to save Tee but fall into a trap set by the ghost's guards. During the chaos, Phi Yipan captures Nak, while Kieow, Thonk, and Eout find themselves ensnared by malevolent Japanese spirits.
As the solar eclipse commences, the sacrificial ritual is underway, and the sinister spirits launch an assault on the city. Yet, Gaem rises to the occasion, orchestrating a bold rescue of Nak and her companions as they confront the fireball ghost and his minions. In a fierce battle, Nak triumphs over Phi Yipan, and Gaem manages to free Tee, causing rays of sunlight to obliterate and decimate some of the fireball ghost's army, including Eout. The fireball ghost, enraged, orders the cloaked ghost to attack Tee and Gaem; however, Nak bravely shields them from the blow.
As the battle unfolds, the cloaked ghost is revealed to be Nak's long-lost son, Daeng, who was captured by the dark sorcerer after Nak's defeat many years prior. This revelation leaves everyone astounded. Nak implores Daeng to make the right decision, but the enraged fireball ghost, now revealed to be the dark sorcerer in spirit form, retaliates with powerful magic. Witnessing his mother getting harmed, Daeng turns against his master, prompting a chaotic clash as he and the other spirits face off against the sorcerer's merged army.
In a twist of fate, the Krasue shaman and her allies use their combined magical abilities to vanquish the sorcerer, sending fiery needles flying, threatening both humans and spirits alike. Nak selflessly protects them, falling unconscious in the process. As the humans and spirits escape the headquarters, the defiant sorcerer uses a statue to launch an attack. In a brave act of sacrifice, Daeng destroys the dark sorcerer once and for all, wishing his mother farewell as he ascends to the afterlife.
In the aftermath of the conflict, with peace restored, Gaem and Tee return home, joyfully reuniting with their mother. Meanwhile, Nak and the other spirits watch over them, filled with happiness as their story reaches a hopeful conclusion.