Jogjakarta Sultan Palace history began when in 1558 AD, Ki Ageng Pamanahan get a gift from the Sultan area in Mataram for services that has been defeated Aryo Penangsang. Ki Ageng Mangir archery remained always loyal of Sultan Agung to end, building a palace in Kotagede in 1577. Substitute Ki Ageng Sutawijaya is the son of archery, in contrast to his father. Raden Sutawijaya refused to submit to the Sultan and want to have their own territory and even dominate the whole island of Java. After winning the battle with the kingdom Pajang 1588, Mataram became a kingdom and Sutawijaya as the title Sultan Panembahan Senopati. Mataram kingdom has many experienced rapid development during the reign of Sultan 4th generation, namely Sultan Agung Hanyokrokusumo. After Sultan Agung died and then was succeeded by his son, named Amangkurat 1.
Mataram kingdom suffered internal conflicts and utilized by the VOC and end with Giyanti Agreement in February 1755 which divided the kingdom of Mataram into Surakarta and Yogyakarta Sultanate. In agreement Mangkubumi be declared Prince Sultan Jogjakarta Sultanate with his Sri Sultan Hamengku Buwana I. Since 1988 until now, Jogjakarta Sultanate led by Sultan Hamengkubuwana X. Yogyakarta Palace was founded by Sultan lane I few months after the Treaty Giyanti. Location is a former royal palace of pesanggarahan named Garjitawati. The houses are used to break the funeral procession of the kings of Mataram to be buried in Imogiri.
Another version states court location is a spring that is named Bannerman Pacethokan and was in the middle of the woods Beringan. Before occupies Sultan Palace, lane I inhabit Houses Ambar Ketawang which now includes the District of Gamping, Sleman regency. Location Yogyakarta Palace is between Code River in the east and the river on the west and Winongo Krapyak Stage in the south and Tugu monument in the north. The site is also located in a line between the Sultan's Palace, the Southern Sea and Mount Merapi.