The Ngayogyakarta Sultanate has a graveyard namely Burial Ground of Mataram Kings in Imogiri (Pajimatan Girirejo Imogiri). This graveyard has existed since the name of Ngayogyakarta Sultanate by the name of Mataram Sultanate. This complex was built during the reign of Sultan Agung Adi Prabu Hanyokrokusumo (Sultan Agung Hanyokrokusumo) in 1632-1640 as the third sultan of Mataram Sultanate (in 1613-1645 AD). Sultan Agung appointed Kyai Tumenggung Tjitrokoesoemo as an architect of graveyard. Thirteen years after he built this graveyard, he was then buried there in 1645 AD.
The graveyard in Imogiri devoted as burial ground for the rulers of Mataram Sultanate. Although this Sultanate was split in 1755 into Surakarta Hadiningrat Sunanate and Ngayogyakarta Hadiningrat Sultanate, but the Sunan and the Sultan in this both kingdoms remained buried in this graveyard. After the splitting of Mataram sultanate, this complex was made wider without a separator. However, since Mataram Sultanate felt apart, this graveyard was also split into two parts. The first part was intended for the Sunan of Surakarta Sunanate, while the other part was destined for the Sultan of the Ngayogyakarta Sultanate.
The Burial ground located 17 kilometers to the south of Yogyakarta city was built with some interesting architectures. One of them is a collaboration of Hindu and Islam influences as can be seen clearly in this graveyard. The Hindu influence is visible at the entrance (gate) in the form of candi bentar (a building resembles a split temple). There are four gates surrounding this graveyard, which are the Kori Supit Urang gate, Regol Sri Manganti I, Regol Sri Manganti II, and the papak gate. Beside these gates, there is also kelir, the fence wall building. There are four kelir namely Kelir Gapura Supit Urang size 4.40 x 0.60 meters in length, made out of brick and stone which has been built without cement. Kelir Regol Sri Manganti I size 4.35 x 0.40 meters has also been built from bricks without cement, the plain roof, while the bottom covered with 17 scopes quadrilateral and hexagon. Kelir Regyol Sri Manganti II made out of bricks size 4 x 0.20 meters, has been decorated with carved areas interspersed with vegetation patterns. The last is Kelir Gapura Papak, been composed of white stone structure in the form of letter L. This kelir was completely not decorated.
Besides the graves of the Sunan and the Sultan, in this graveyard is also contained a mosque which built during the reign of Sultan Agung Hanyokrokusumo. Its authenticity is still protected until now. The authenticity of buildings and devices as can be seen from soko guru (pole center) that made out of teak wood which is supported by square umpak made out of stone, the mihrab niche in the west wall, and the podium that decorated with the carvings of which resembles the form of kala . These Soko guru, mihrab, and the podium made in the reign of Sultan Agung Hanyokrokusumo are still being used now until now. In addition, the architecture mosque is being protected by not eliminating the pond that located in front of the mosque.
Besides the graves of the kings and the mosque, this graveyard is also has four padasan (big barrels). These four Padasan were gifts from other Kingdoms that have a good relationship with Sultan Agung Hanyokrokusumo. These four padasan were named Nyai Siyem (from Siam), Kyai Mendung (from Rum/Turkey), Kyai Danumaya (from Aceh), and Nyai Danumurti (from Palembang). Padasan serves as a place of water to wudhu (ablution), but many visitors or pilgrims believe that the water in padasan has efficacious to cure diseases and achieve success. These four padasan are filled once a year on the first Tuesday kliwon and Friday Kliwon in month of Suro with special traditional ceremony. In the same story with padasan, there are other myths concerning about the steps which amounted 345 units. This staircase is the path to the gate of grave. If the visitors succeed to count the number of steps correctly, according to the myth then all his requests will be granted.
Looking from its structure, generally the structure of this burial ground is triangular. At the upper end of the triangle, there is Sultan Agung Hanyokrokusumo’s grave. In the east, there are the Sultan of Ngayogyakarta Hadiningrat Sultanate’s graves, while on the west side there are the Sunan of Surakarta sunanate’s graves.
The graves of Sunan and Sultan are divided into eight groups collected from 23 descendants of Sunan and Sultan. Both are in the Sunan of Surakarta sunanate, as well as the Sultan of the Ngayogyakarta Sultanate. This grouping of Sunan and Sultan are: Kesultanan Agungan (graveyard of Great Sultan, Queens consort, Hamangkurat Amral, and Hamangkurat Mas); Paku Buwanan (graveyard of Pakubuwono I, Hamangkurat Jawi, and Pakubuwono II); Kasuwargan Jogjakarta (graves of Hamengkubuwono I and Hamengkubuwono III); Besiyaran Yogyakarta (graves of Hamengkubuwono IV, Hamengkubuwono V, and Hamengkubuwono VI); Saptorenggo Yogyakarta (Hamengkubuwono VII, Hamengkubuwono HB, and Hamengkubuwono IX); Kasuwargan Surakarta (Pakubuwono III, Pakubuwono IV, and Pakubuwono V); Kapingsangan Surakarta (Pakubuwono VI, Pakubuwono VII, Pakubuwono VIII, and Pakubuwono IX); and Girimulya Surakarta (Pakubuwono X, Pakubuwono XI, and Pakubuwono XII).
According to its status as the graves of Sunan and Sultan, then there are some rules that must be complied with the visitors when visiting it. The rules are, the visitors are required to be polite. It is forbidden to wear footwear when entering the graveyard. They are prohibited wearing jewelry (especially gold), prohibited from carrying a camera, prohibited especially for women when in menstruation, and the pilgrims should be dressed in customary of Java. For male, wear blangkon, beskap, fabric, belt, buckle, and samir. In addition, for woman should wear kemben and a long cloth.