Judge Advocate General

The Judge Advocate General's Office (or simply the "Judge Advocate's Office") is a department within Starfleet dealing with legal matters and personnel. Legal counsel report to the senior JAG officer. The JAG officer advises Starfleet on and administers court martials.