 His father was Tun Ali, "Bendahara Siwa Raja", and his mother was "Encik Wan" Ngah of the Bendahara family.He was privately educated as was the custom of the nobility then.In 1832, he was proclaimed as Bendahara Muda (Bendahara in waiting) in a ceremony in Lingga, then capital of the Johor empire.