Temples and Royal CourtsIn the 8th and 9th centuries, the Buddhist Shailendra and Hindu Sanjaya dynasties of the Mataram Kingdom built Borobudur, Prambanan, and hundreds of smaller temples here. Around 929, power shifted to East Java, likely due to eruptions of Mount Merapi. From the 16th century, the Islamic Sultanate of Mataram emerged, dividing in 1755 into the courts of Yogyakarta and Surakarta (Solo). From 1825 to 1830, Prince Diponegoro of the Yogyakarta court led the Java War against the Dutch. At least 200,000 Javanese died from combat, hunger, and disease, after which the Dutch controlled all of Java.Religion and BeliefsThe majority is Muslim, but many Javanese combine Islam with older Hindu, Buddhist, and animistic traditions, known as Kejawen. It is understood less as a distinct religion than as a philosophy of life with rituals and meditation. This connection becomes visible during Sekaten: For a week, two sacred Gamelan orchestras play at the Great Mosque to celebrate the Prophet's birthday. To conclude, during Grebeg Maulud, palace servants carry mountain-shaped offerings of rice, vegetables, and sweets (gunungan) from the Kraton to the mosque, which the crowd dismembers, as the pieces are believed to bring good fortune. The festival takes place simultaneously in Yogyakarta and Solo.Society and CustomsBoth courts continue to cultivate Gamelan, Wayang shadow puppetry, classical dance, and the art of Batik, which was recognized by UNESCO as intangible cultural heritage in 2009. Yogyakarta is the only province in Indonesia whose governor is a Sultan. Javanese has different language levels: Ngoko for friends and family, Krama as a respectful form for elders and those of higher status, and Madya for the middle ground between them.Visitor ConductIn the Kraton, mosques, and temples, cover your shoulders and knees and remove your shoes before entering interiors. Javanese politeness thrives on restraint: Loud complaining and open criticism lead to loss of face and rarely achieve their goal. During Grebeg, it gets very crowded in front of the Kraton, so mind your valuables. During Ramadan, do not conspicuously eat or drink in public during the day.