The candis of Gunung Kawi are believed to have been constructed in the 11th century (1080 AD) by King Anak Wungsu in honor of his father, the great Balinese ruler Udayana and the Warmadewa Dynasty. According to history, the monuments on the eastern bank are dedicated to King Udayana, Queen Mahendradatta and their sons Airlangga, AnakWungsu and Marakata. When AnakWungsu ruled Bali, Airlangga ruled eastern Java. In history, Airlangga was known as the legendary king of the kingdom of Singosari, whose remnants can still be seen not far from Surabaya.