Mataram Sultanate
Kotagede, now a district in southeastern Yogyakarta, was established as the capital of the Mataram Sultanate from 1587 to 1613. During the reign of Sultan Agung Hanyokrokusumo (1613–1645), the Mataram Sultanate reached its zenith as the greatest kingdom in Java, and expanded its influence to Central Java, East Java, and half of West Java. After two changes of capital—to Karta and then to Plered, both located in present-day Bantul Regency—the capital of the Mataram Sultanate finally moved to Kartasura.