In classical Malay kingdoms, a Bendahara was the most important and highest administrative position in royal court, serving as the chief of all ministers. As a royal adviser, a Bendahara was appointed by the Raja and dismissible only by the Raja himself. The position is hereditary and candidates were selected from the male descendants of the Bendahara family.