Bedulu was once the capital of a great kingdom. The legendary Dalem Bedaulu ruled the Pejeng dynasty from here, and was the last Balinese king to withstand the onslaught of the powerful Majapahit from Java. He was defeated by Gajah Mada in 1343. The capital shifted several times after this, to Gelgel and then later to Semarapura (Klungkung). Today Bedulu is absorbed into the greater Ubud sprawl.