Tribunal (Star Trek: Deep Space Nine)

[1][2] On his way to leave for a vacation with his wife Keiko, Miles O'Brien runs into an old Starfleet crewmate, Raymond Boone, who served with him years earlier in the battle of Setlik III.

He meets his appointed advocate, Kovat, whose job is not to secure an acquittal but to engineer O'Brien's cooperation so that the people of Cardassia can perceive that justice is being done.

Back on Deep Space Nine, Keiko and Commander Sisko are informed that O'Brien has been declared guilty and sentenced to death, and will have a ceremonial "trial" in which the verdict is read.

Meanwhile, the crew of Deep Space Nine discovers that a number of warheads have been stolen and have probably ended up in the possession of the Maquis, a faction that has been attacking the Cardassians.

The senior officers, working under the assumption that the Maquis stole the warheads, identify Boone as the person O'Brien spoke to prior to departing the station and arrest him.

They conclude that the impostor was sent by the Cardassian High Command to steal the warheads and frame O'Brien as a Maquis collaborator, with the goal of forcing the Federation to remove its colonies along the demilitarized zone.

Avery Brooks
Avery Brooks both directed the episode and played the role of Sisko.