The omnipotent being who often tests the Enterprise crew is Q. Played primarily by John de Lancie, Q is a member of the Q Continuum, a mysterious society of beings with apparently unlimited power and extremely long lifespans.
Q first appears in “Encounter at Farpoint,” the premiere of Star Trek: The Next Generation, where he places humanity on trial. He repeatedly challenges Captain Picard and the crew through courtroom-like accusations, impossible scenarios, time distortions, and moral tests. His interventions are often dangerous, but they also force the crew to confront their assumptions about humanity and the wider universe.
Q is sometimes confused with the Organians, the Prophets, or the Traveler, all of whom possess unusual abilities but are separate entities with different roles and origins. Q’s behavior is especially distinctive because he combines cosmic power with mischief, vanity, and a personal fascination with Picard. He also appears in later Star Trek series, including Voyager and Picard.