Question: why are civil servants called mandarins?
Answer: The mandarins were the founders and core of the Chinese gentry. A governmental office (for example, a central government department or a provincial civil governorate) headed by a mandarin is called a yamen. The mandarins were replaced with a modern civil service after the fall of the Qing dynasty.