Pajang was a kingdom in
Java after the fall of
Demak. There was only one ruler of Pajang according to some records - , Sultan Hadiwijaya. Sultan Hadiwijaya also known as Jaka Tingkir or Mas Karebet. He was the son of Ki Ageng Pengging, a student of
Syech Siti Jenar. Ki Ageng Pengging was the son of last king of
Majapahit,
Brawijaya V. Hadiwijaya become the ruler after the fall of Demak. He married one of Trenggono's daughter. Because Trenggono didn't have a son, the next ruler was Karebet. But Karebet was not interested in repairing and restoring Demak so he relocated to Pajang.