Original: A few months before the beginning of the perjury trial, Archer began in the star role in a courtroom play (which he also wrote) called The Accused.
Simplified: A few months before the beginning of the perjury trial, Archer began performing in the star role in a courtroom play (which he also wrote) called The Accused.