1019. The Kingdom of Kahuripan can be considered as the successor state of Mataram Kingdom, and from this point on, the kingdom was known as Kahuripan, with its capital located near Brantas river estuarine, somewhere around modern Surabaya, Sidoarjo or Pasuruan in East Java. The dynasty The dual dynasties theory Bosch in his book "Srivijaya, de Sailendravamsa en de Sanjayavamsa" (1952) suggested that king Sanjaya was the progenitor of the Sanjaya dynasty, and there were two dynasties that ruled Central Java; the Buddhist Shailendra and the Shaivist Sanjaya dynasty. The inscription also states that Sanjaya was an ardent follower of Shaivism. From its founding in the early 8th century until 928, the kingdom was ruled by the Sanjaya dynasty. The first king was Sanjaya, who ruled in the Mataram region in the vicinity of modern Yogyakarta and Prambanan, and left the written records on the Canggal inscription. However, around the mid 8th century, the Shailendra dynasty emerged in Central Java and challenged Sanjaya domination in the region. The prevailing historical interpretation holds that the Shailendra dynasty co-existed next to the Sanjaya dynasty in Central Java, and much of the period was characterised by peaceful co-operation. The Shailendra, with their strong connections to Srivijaya, managed to gain control of Central Java and become overlords of the Rakai (local Javanese lords), including the Sanjayas, thus making the Sanjaya kings of Mataram their vassals. Little is known about the kingdom due to the dominance of the Shailendra, who during this period constructed Borobudur, a Buddhist monument. Samaratungga, the monarch of the Shailendra, tried to secure the Shailendra position in Java, cementing an alliance with the Sanjayas by arranging the marriage of his daughter Pramodhawardhani with Pikatan. Around the middle of the 9th century, relations between the Sanjaya and the Shailendra deteriorated. In 852, the Sanjaya ruler, Pikatan, defeated Balaputra, the offspring of the Shailendra monarch Samaratunga and the princess Tara. This ended the Shailendra presence in Java; Balaputra retreated to the Srivijayan capital in Sumatra, where he became the paramount ruler. The victory of Pikatan was recorded in Shivagrha inscription dated 856, created by Rakai Kayuwangi, Pikatan's successor. The single dynasty theory However, this dual Shailendra—Sanjaya dynasties theory proposed by Bosch and De Casparis was opposed by some Indonesian historians in later period. An alternate theory, proposed by Poerbatjaraka, suggests there was only one kingdom and one dynasty, the kingdom called Mataram, and