In the 8th century the Javanese sage Rsi Markandeya was looking for a place to meditate — and found it where two rivers meet.
Legend says Markandeya came from Java, began building Besakih temple on the slopes of Agung, then saw a beam of light falling into a valley where two rivers join. There he founded Gunung Lebah temple, and the village of Ubud grew up around it.
The Balinese see the confluence as a point of balance between male and female forces. It's the start of the Campuhan ridge trail: pilgrims once walked it, and today people stroll, do yoga and take photos.
The name is linked to the word 'ubad', medicine: healing herbs were gathered in the surrounding jungle. Later Ubud became the seat of a princely family, and its palace, Puri Saren, is still lived in — by the fifth generation of the royal family.
In the 1920s and 30s Ubud's rulers invited European artists. Walter Spies and Rudolf Bonnet helped local painters find a new style, and the Spaniard Antonio Blanco, the 'Dalí of Bali', was given land by the king — his house-museum still stands in the centre.
Ubud's patron is Saraswati, goddess of wisdom and the arts; her lotus-pond temple sits right in the middle of town. The Monkey Forest holds three temples: the Balinese believe monkeys guard sacred land from evil spirits, just as they once helped Rama in the Ramayana build a bridge to Lanka. A banyan tree there is around 700 years old.
Today Ubud is a hub of yoga, retreats and creative people from all over the world. Yet everything here still rests on balance — good and evil, light and dark, life and death. The Balinese call it rwa bhineda.