In classical Melaka and Johor Sultanates, a Bendahara was the most important and highest administrative position, serving as the chief of all ministers. As an adviser to the Sultan, a Bendahara was appointed by the Sultan and dismissible only by the Sultan himself. The position is hereditary and candidates were selected from the male descendants of the Bendahara family.