Ashot III (the Merciful; 952—977) transferred his capital to Ani and began to make it into one of the architectural gems of the Middle Ages. The Bagratids of Ani—who bore the title shāhanshāh ("king of kings"), first conferred upon Ashot II (the Iron) by the caliph in 922—were not the sole rulers of Armenia.