Temenggong

The Temenggong is usually responsible for the safety of the monarch (raja or sultan), as well as overseeing the state police and army.

A temenggong may also be assigned by its sovereign as a ruler in frontier regions, acting as either a regent or a viceroy with additional development & military responsibility (comparable to European Marquess).

Negarakretagama cantos 10[5] describe that the mayor visited the Kepatihan Amangkubhumi (Prime Minister building) led by Gajah Mada in order to report the administrative activities in the area.

[6][7] They were responsible for raising and commanding their own regional army, which could be assigned in a military expedition supervised by the sultan himself.

He was executed by Sultan Agung due to his failure while leading the Mataram army during the unsuccessful Siege of Batavia in 1628.