Of Indian Muslim ancestry, he was the seventh Bendahara, a post equivalent to a prime minister. Prior to holding the post of Bendahara, he also held the post of Temenggung. He was also an influential Indian Muslim leader in Malacca who elected Indian Muslims to important posts in the Malaccan government.[citation needed]