The Kingdom of Panjang is seen as the first kingdom that emerged in the interior of
Java after the collapse of the Muslim kingdom in the
Pasisir, or the northern coastal region of Java. According to the
babad scripts, Andayaningrat died at the hands of during the war between the
Majapahit Empire and the
Demak Sultanate. He was later replaced by his son, whose name was Raden Kebo Kenanga, with the title Ki Ageng Pengging. Since then Pengging has been the subordinate area of the Demak Kingdom. Several years later Ki Ageng Pengging was sentenced to death because he was accused of trying to rebel against the
Demak Sultanate. His son, who had the title
Jaka Tingkir, when he was an adult, actually served
Demak.
Jaka Tingkir's brilliant achievements in the army made him appointed as
Trenggana's son-in-law and became the
regent (bupati) of Pajang with the title Adiwijaya. The Pajang area at that time covered the Pengging area (now roughly covering
Boyolali and
Klaten), Tingkir (the
Salatiga area),
Butuh, and its surroundings. After the death of Trenggana in 1546, then took the throne. However, Sultan Prawata was killed by his cousin, Arya Penangsang, the
regent (bupati) of Jipang in 1547. After that,
Arya Penangsang tried to kill
Adiwijaya but failed. With the support of
Ratu Kalinyamat (the
regent (bupati) of
Jepara and daughter of Trenggana), Adiwijaya and his followers succeeded in defeating Arya Penangsang. Adiwijaya then seized the throne of Demak and founded the Kingdom of Pajang. ==See also==