In 2364 the entity Q stopped the new Enterprise-D and put humanity on trial, using the mystery of Farpoint Station as the test.
On its first mission in 2364, the USS Enterprise-D under Captain Jean-Luc Picard was intercepted by Q, a member of the Q Continuum who claimed humanity was a dangerous, savage race. Q staged a courtroom in the style of a post-atomic-horror tribunal and charged the human species with its past crimes.
Picard argued that humans should be judged by what they are now, not by their history, and Q agreed to let the crew prove themselves through their mission to Deneb IV. There the Bandi had built Farpoint Station, which seemed able to produce anything its guests wished for. The crew found that the station was actually a captured space-dwelling life form, forced by the Bandi to take the station's shape.
When a second creature of the same kind attacked the Bandi city, the Enterprise freed the captive, and the two creatures departed together. Q grudgingly ended the trial but made it clear that humanity's judgment was not over, a theme he would return to years later.