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.