 During this era, the Islamic kingdoms of Demak, Cirebon, and Banten were ascendant.The Mataram Sultanate became the dominant power of central and eastern Java at the end of the 16th century.The principalities of Surabaya and Cirebon were eventually subjugated such that only Mataram and Banten were left to face the Dutch in the 17th century.