In the late 8th and early 9th centuries, Java observed rivalries between two dynasties. The first four Sanjaya Dynasty lines after King Sanjaya (Panangkaran, Panunggalan, Warak and Garung), which was known as the Amrati Kings, competed over their power and religious influences with the Sailendras princes in the south of central Java who had arisen since 779. The Sanjayas were Hindus while Sailendras were Buddhists. There was only an isolated kingship in the east of Java, Gajayana, who appeared to have control over the Mount Kawi region in 760.