In the outset Ubud was one of regions of Sukawati Kingdom which was ruled by its first king Dewa Agung Mayun (1710-1745). The second king of Sukawati, Dewa Agung Gede (1745-1770) and his queen Ni Gusti Agung Mengwi was the relative of I Gusti Agung Putu Agung Mengwi.
When Dewa Agung Mayun reigned, Sukawati was safe and prosperous. He, then retired and his son succeeded him, and he made a resting house at Patemon village, located about 15 km Northeast of Sukawati Palace. His two sons, Dewa Agung Gede and Dewa Agung Made has fight often that it made him sad.
Dewa Manggis Api of Beng village served Dewa Agung Gede Mayun, and always kept him entertained. When the king felt his death was near, he called his both sons, but due to the conflict, they did not attend, until the king died.
Dewa Agung Made wanted Sukawati to be devided into two, yet his brother did not agree. The people were also divided. Meanwhile, in Ubud which was region of Sukawati, there was two big families, I Gusti Padang tegal and I Gusti Taman. Both had different opinion about what was happening at the kingdom. I Gusti padang Tegal was on the side of Dewa Agung Gede to replaced his father, yet his brother did not agree as Dewa Agung Gede was too clumsy and ignored people aspiration, and he believed that Dewa Agung Made was wiser. Both than prepared their own army. I Gusti Padang Tegal assumed that Sukawati army was on Taman’s army, while Taman’s army thought the opposite that both worried and escaped to cross Ayung river and stayed there. The village resided by Taman’s people now called as Taman Village, while village resided by Padang tegal is now called as Punggul Village. To avoid same conflict in other areas, Dewa Agung Gede then secured other villages such as Peliatam, Ubud, Petulu and Gentong. And there was no other conflict happened in Sukawati.