But the key figure in the sultanate was Tun Perak, bendahara (prime minister) and military commander.
Tun Perak was the military commander and the prime minister.
Though Tun Perak had command of the military, but no political power.