 Following more than two centuries of Arab rule, Armenia gained independence under the leadership of the Bagratid (Bagratuni) dynasty around 885.King Ashot III made Ani capital in 961, after which the city emerged as a prosperous urban center with 100,000 residents at its height.The construction of the cathedral began in 989.