City Demak Who held it through time 570 CE400 AH900 AH1342 AHIn the atlas's record: under Muslim rule for about 360 years, held by 4 states in turnSultanate of Demak880–956 AH · 1475–1549 CESultanate of Pajang956–995 AH · 1549–1587 CEMataram Sultanate995–1168 AH · 1587–1755 CECourts of Surakarta and Yogyakarta (Mataram's heirs)1168–1246 AH · 1755–1830 CE Capital of880–956 AHSultanate of Demak Events (1)Demak overthrows the last Hindu-Buddhist court of Majapahitc. 933 AH · c. 1527 CE