Kotagede (also Kota Gede, Javanese for "Big City") is a historic neighborhood in Yogyakarta, Indonesia. The name was also used for the administrative district (kecamatan) of the same name in the City of Yogyakarta. Kotagede contains the remains of the first capital of Mataram Sultanate, established in the 16th century. Some of the remains of the old Kotagede are remains of the palace, the royal cemetery, the royal mosque, and defensive walls and moats. Kotagede is well known internationally by its silver crafting.
Kotagede was previously a forest named Mentaok, to the east of Gajah Wong River. During the last quarter of the 16th century, the ruler of the Islamic Kingdom of Pajang, about 100 kilometers to the east of this site, awarded the forest to Ki Ageng Pemanahan, one of his courtiers who successfully put down a rebellion. Pemanahan opened the forest with his son Danang Sutawijaya, who was also an adoptive son of the ruler. A settlement was established and was named Mataram as Pemanahan himself was called Ki Gedhe Mataram, "the Lord of Mataram.