Meaning
To be on trial or facing legal charges.
Literal Meaning
To be in the position of being judged.
Example
“The defendant was in the dock, waiting for the verdict.”