Dalem (Raja)
Dalem was a title for the kings of Bali who resided in Samprangan and Gelgel and were descended from the founder-raja Sri Aji Kresna Kepakisan. These kings ruled the island, or at least substantial parts thereof, from maybe the 14th century to the second half of the 17th century. The title literally means "inside", and alludes to his ritual-symbolic role inside the palace. The title is first found in a Dutch report from 1619, which says that the Radia Dalam was the paramount ruler of 33 lesser Balinese lords. The title is used in the chronicle Babad Dalem from the 18th century, which recounts the history of the kings of Bali up the end of the 17th century. After the fall of the Gelgel kingdom in 1686, a daughter kingdom was established in nearby Klungkung. However, the rulers of the Klungkung Palace were usually known by another title, Dewa Agung. In the literature, Dewa Agung is sometimes, although anachronistically, used also for the pre-1686 kings of Bali.