Arya Penangsang soon faced heavy opposition from his vassals due to his unlikeable character, and soon was dethroned by a coalition of vassals led by Hadiwijaya, Duke of Boyolali, who had kinship with the King Trenggana.
Hadiwijaya assumed the role as the King after Penangsang is killed but he moved all the Demak heirlooms and sacred artifacts to Pajang, then he ended the Demak history when he founded his new kingdom: the short-lived Kingdom of Pajang.