In the 22nd century, the monastery was ransacked three times by the Andorians looking for a suspected sensor array. On the last of these occasions, in 2151, the Earth starship Enterprise NX-01 visited P'Jem, only to find it taken over by a group of Andorian commandos led by Shran. After some initial misunderstanding and a firefight, the commandos and the Enterprise landing party discovered a highly sophisticated surveillance installation in the catacombs beneath the monastery. Captain Archer gave scans of the facility conducted by his science officer, T'Pol, to Shran as evidence of the Vulcans' spying. (ENT: "The Andorian Incident")
Though the Andorians gave the monks and surveillance personnel ample warning before an eventual orbital bombardment, the Vulcan High Command blamed T'Pol, who was by then a subcommander, for allowing Archer to expose the facility and recalled her from Enterprise. They rescinded this decision at the request of Captain Sopek, after T'Pol saved his life on Coridan. (ENT: "Shadows of P'Jem")
The repercussions back on Vulcan were longer lasting. The First Minister was dismissed, and the High Command forced the resignation of T'Les, T'Pol's mother, from the Vulcan Science Academy. The evidence of treason they used had been fabricated; even so, T'Pol had no way to restore her mother's position except by marrying into Koss' influential family. (ENT: "Home")
Arev identified Archer as the man who was responsible for the destruction of the monastery on P'Jem, after Arev learned that T'Pol was the daughter of T'Les. Archer assumed this would be held against him. However, Arev remarked that the captain's actions exposed the Vulcan High Council's "hypocrisy." (ENT: "The Forge")
In the script of "The Andorian Incident", this monastery is referred to as "an eerie rust-colored temple [which] clings to a high mountain precipice" and "the majestic mountaintop retreat." The area was also scripted to include "a stone landing platform" and the script goes on to say, "A bridge connects the platform to the sanctuary beyond."
In the final draft script of ENT: "Desert Crossing", Charles "Trip" Tucker referenced this monastery, saying it was about as uncomfortable to be on the Torothan homeworld as it had been at the monastery.
It is unknown whether the the planet on which P'Jem was situated is also called P'Jem. The script of "The Andorian Incident" refers to the monastery as the "Sanctuary at P'Jem," implying that the name P'Jem is also used for either the planet or the area of it where the monastery is located. Also unclear is the function of the destroyed buildings during the twelve centuries they stood prior to the availability of Surak's ideas for contemplation and practice.
In the backstory of Star Trek Online, P'Jem was rebuilt by a coalition of Humans, Andorians and Vulcans in 2170, and access is restricted to protect the sanctity of the monastery. One of the early Federation missions, "Diplomatic Orders", partially takes place there, as the player character hunts down an infiltrator from Species 8472 ("Undine") disguised as a Vulcan ambassador.