the ruling dynasty being the Shailendra dynasty. This theory is supported with Boechari interpretation on Sojomerto inscription and Poerbatjaraka study on Carita Parahyangan manuscript, Poerbatjaraka holds that Sanjaya and all of his offspring belongs to the Sailendra family, which initially was Shavite Hindu. However, according to Raja Sankhara inscription (now missing); Sanjaya's son, Panangkaran, converted to Mahāyāna Buddhism. And because of that conversion, the later series of Sailendra kings who ruled Mataram become Mahāyāna Buddhists also and gave Buddhism royal patronage in Java until the end of Samaratungga's reign. The Shaivite Hindus regained royal patronage with the reign of Pikatan, which lasted until the end of the Mataram Kingdom. During the reign of Kings Pikatan and Balitung, the royal Hindu Trimurti temple of Prambanan was built and expanded in the vicinity of Yogyakarta. Government and economy The complex stratified ancient Javan society, with its refined aesthetic taste in art and culture, is evidenced through the various scenes in narrative bas-reliefs carved on various temples dated from the Mataram era. Capital During this period the common concept of city, as it known in Europe, Middle East or China, as the urban concentration centre of politics, administration, religious and economic activities, was not quite established yet in ancient Java. The proper urban development as a city took place later in 13th-century Majapahit's Trowulan. The capital itself is more likely refer to the palace, a walled compound called pura in Sanskrit, or in local Javanese as karaton or kadatwan, this is where the king and his family reside and rule his court. The palace itself is more of a collection of pendopo style pavilions surrounded by walls. These pavilions and halls are made from organic wooden and thatched materials, so they had decayed over centuries leaving only stone walls, gates, terraces and bases. The example of this type of secular buildings can be found in Ratu Boko compound. The Javanese urban centre in this period did not recognise walled-city as it found in Chinese or Indian counterparts, the only walled, well-guarded and protected compound was the king's palace and temple compound. The nagara or capital itself was more of a collection of densely populated villages surrounding the pura (king's palace). The religious activity centres, which refer to the location of where the temples stood, did not necessarily signify the administrative or economic centre as well. As according to inscriptions, numbers of lands has