Born in Palembang in 1234 into a poor family, he gained high status after learning the ancient black arts from Raja Rai or Raidashir - who was arguably the brother to King Ardashir I of Persia.