Set in the 24th century, "Star Trek: Deep Space Nine" follows the adventures of the crew of the space station Deep Space Nine, near the planet Bajor, as the Bajorans recover from a brutal, decades-long occupation by the imperialistic Cardassians. In this episode, Captain Benjamin Sisko (Avery Brooks) and the crew aboard the USS "Defiant" are taken back in time to the events of the "Original Series" episode "The Trouble with Tribbles", and must work to prevent the assassination of Captain James T. Kirk (William Shatner) of the USS "Enterprise" by a Klingon using a booby-trapped tribble.