in the dock
On trial, especially in a criminal case. For example, The accused stood in the dock through the entire proceeding. This expression employs dock in the sense of "an enclosed place for the defendant in a court of law," a usage dating from the late 1500s, and is used even in American courts where no such enclosure exists.
Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.