The Pah-wraiths are malevolent god-like aliens who are enemies of the Bajorian Prophets in Star Trek: Deep Space Nine.
The Pah-wraiths are non-corporeal beings and enemies of the Bajoran Prophets. Bajoran religious texts relate that the Pah-wraiths once resided in the Celestial Temple alongside the Prophets. However, for reasons unknown, they were banished to the Fire Caves on Bajor. According to ancient Bajoran texts, they were "false Prophets."
The Pah-wraiths typically take the form of fire spirits (from which they get their name). All of the so-called "wormhole aliens" are vulnerable to chronitons. This was discovered in 2373, when a Pah-wraith took over the body of Keiko O'Brien and attempted to destroy the Prophets by firing a chroniton beam directly at the Bajoran wormhole, but was foiled and destroyed by Keiko's husband Miles O'Brien. The Pah-wraiths are very similar to the Prophets, for they can appear to corporeal beings as people they know.
In the same year, one of the Kosst Amojan took over the body of Jake Sisko in order to fulfill the ancient prophecy of "The Reckoning." A Prohphet took over Major Kira's body. Having faith that the Prophets would protect his son, Benjamin Sisko refused to allow the station crew to drive the Prophet and Pah-wraith from the station with chroniton radiation, and to allow the battle to proceed. The Prophets had nearly won the battle, but both they and the Kosst Amojan were driven away after Kai Winn Adami flooded Deep Space 9 with chroniton radiation before the battle was completed. After her recovery Kira told Winn that Sisko - an infidel - had more faith than the Bajoran Kai, and that her interference in the battle changed the future to one not even the Prophets could foresee.
In 2374, Gul Dukat released a Pah-wraith from an ancient artifact, which then took over his body and then used him to get to the Orb of Contemplation aboard Deep Space 9. Jadzia Dax happened to be in the shrine at the time, and was fatally wounded by the Pah-wraith. The Pah-wraith was then released into the Orb, allowing it access to the wormhole and collapsing the entrance on the Alpha Quadrant side, starting a war between the Prophets and the Pah-wraiths.
In 2375, Benjamin Sisko received visions from the Pah-wraiths, via a quest for the Orb of the Emissary, in an attempt to confuse him from what the Prophets wished him to do. They failed and Sisko opened the vessel containing that orb, re-opening the Bajoran wormhole.
The imprisonment and release of the Pah-wraiths was detailed in the Book of the Kosst Amojan and the legend of the koss'moran. Followers of the teachings of the Pah-wraiths joined the Cult of the Pah-wraiths. Dukat posed as the Emissary of the Pah-wraiths in 2375, on board the abandoned Cardassian space station Empok Nor.
In the same year, Kai Winn discovered that it had been the Pah-wraiths that had been communicating with her, rather than the Prophets. Dukat, in disguise as Anjohl Tennan, then convinced her that the Pah-wraiths are the true Prophets, and that they must be released from the Fire Caves. She agreed and consulted the Book of the Kosst Amojan.
Later that year, Sisko tried to stop the Pah-wraiths. However, they resurrected Dukat with near-omnipotent power. Dukat revealed the Pah-wraith's plans to Sisko: to spread over the Alpha Quadrant and later the rest of the Universe, leaving it burning. In order to stop them, Sisko rushed Dukat, knocking himself, Dukat, and the Book of the Kosst Amojan into a fire pit.
The book was vaporized in the heat of the fire pit, trapping Dukat and the Pah-wraiths in the Fire Caves forever. Sisko was rescued by the Prophets and spent the next several months in the wormhole, studying with the Prophets.