Q Who?

Star Trek: The Next Generation
Season 2, Episode 16
The Q character has always been a beloved member of the Star Trek franchise and truly started his role with the Next Generation show. Perhaps his best appearance is in the Q Who? episode. Yet again back to pester Captain Picard, Q abducts him. Demanding to be returned to the Enterprise, Picard angers Q who wants the Captain to want him. This leads him to transport them to Ten Forward where Guinan recognizes him and tells Picard not to trust Q. Angered yet again, Q sends the Enterprise thousands of lightyears across the galaxy. The nearest StarBase is two years away at maximum warp.
Picard is curious to explore this sector of the universe but eventually finds out that it is controlled by the Borg. This would be their introduction to the series. They board the Enterprise while also attacking it from the outside. The Enterprise returns fire and fights the Borg on the ship too but they are no match for them. Hesitant, Captain Picard tells Q he is needed and he helps them escape. The entire episode was a lesson in how ill-prepared the Starfleet was for the Borg, making many feel Q was trying to teach them a major lesson. Making this one of the best Star Trek episodes ever as it flipped the script a bit.