"Relics" is the 129th episode of Star Trek: The Next Generation, the fourth episode of the show's sixth season. It originally aired during the week of 13 October 1992.
The USS Enterprise-D picks up a distress call from the USS Jenolan, a transport vessel that has been missing for seventy-five years. As the Enterprise drops out of warp to respond to the signal, the starship is rocked violently by a massive gravitational field. They trace the field to its center and discover a massive spherical structure. The sphere's dimensions are consistent with those of the (until then) theoretical structure known as a Dyson sphere. The sphere's size creates massive gravimetric interference that interferes with sensors, preventing the Enterprise from locating it before the ship had dropped out of warp.
The Enterprise locates the Jenolan, having crashed on the surface of the sphere. Surprisingly, power readings are still emanating from the crashed ship and life support systems are still operating. Commander Riker, Lt. Cmdr. La Forge and Lt. Worf beam aboard the Jenolan and find that, although some of the ship's systems are still functioning, there are no apparent signs of life. However, La Forge discovers that the transporters have been reconfigured in a strange manner – power has been drawn from the auxiliary systems (they were a regenerative power source) while the rematerialization subroutines have been intentionally disabled, with the phase inducers being connected to the emitter array and the pattern buffers locked in a diagnostic cycle. Furthermore, a pattern is still in the buffer and, amazingly, it has suffered almost no degradation. Riker wonders if someone could survive in the transporter buffer for 75 years and La Forge finds out by rematerializing the stored pattern. Captain Montgomery "Scotty" Scott materializes on the transporter pad.
Did You Know that the episode "Deja Q" was originally about a looming Klingon-Federationwar that was caused by Q, who had "faked" his loss of powers, only to later come in to become the hero?