In the 7th century, Somavamshi or Keshari dynasty established their kingdom in the area, and constructed a number of temples. After the Kesharis, the Eastern Gangas ruled Kalinga area until the 14th century CE. Their capital Kalinganagara was located in present-day Bhubaneswar City. After them, Mukunda Deva of the Bhoi dynasty – the last Hindu ruler of the area until the Marathas – developed several religious buildings in the area. Most of the older temples in Bhubaneswar were built between 8th and 12th centuries, under Shaiva influence. The Ananta Vasudeva Temple is the only old temple of Vishnu in the city. In 1568, the Karrani dynasty of Afghan origin gained control of the area. During their reign, most of the temples and other structures were destroyed or disfigured.