 Zakare's new dynasty — the Zakarids — considered themselves to be the successors to the Bagratids.Prosperity quickly returned to Ani; its defences were strengthened and many new churches were constructed.The Mongols unsuccessfully besieged Ani in 1226, but in 1236 they captured and sacked the city, massacring large numbers of its population.