Manut ring babad mengwi, i gusti agung putu pinaka sang sane ngadegang keraton mengwi sampun ngadegang pura sane magenah ring muncuk danu beratan sadurung ngadegang pura taman ayun.
Based on the mengwi inscription, i gusti agung putu as the founder of the mengwi kingdom had built a temple at the end of lake beratan before he founded the taman ayun temple.