captain of the guard
A historical or formal title for the officer in charge of a guard unit, often in a palace or military context.
The captain of the guard directed the palace security.
Compound of 侍衛 (guard, escort) and 長 (chief, head). The exact historical derivation is uncertain.