In Ajayameru, Vigraharaja had constructed as many temples as the hill forts he had conquered. In the middle of these temples, Someshvara erected the Vaidyanath (Shiva) temple, which was taller than all of Vigraharaja's temples. He installed images of Brahma, Vishnu and Shiva in this temple. He also placed effigies of his father and himself riding horses in the temple premises. Just like Meru had five Kalpavrikshas, Someshvara built five temples in Ajayameru. He built so many temples at other places, that the population of city of gods declined.