A local ruler or bandit leader usually where the government is weak.
A high military officer in a warlike nation.