The Armenians took advantage of the weakening of the Arab power to form independent kingdoms. One of the principal noble families during the period of Arab dominion was that of the Bagratuni. This family was rich and powerful and had much land in its possession. Under the Arsacidae, the head of this family was hereditary "coronator" (i.e., he had the privilege of putting the crown on the king's head, on the occasion of a new sovereign). During the rule of the Arabs, the command of the Armenian army was given to this family. The Bagratuni, though extremely courageous and patriotic, were also cautious and tactful in their relations with the Arabs, whom they served faithfully, thus gaining the respect of the Khalifs. As they also won the love and esteem of their own countrymen by rebuilding and restoring what the Arabs had destroyed, they were able to act as mediators between the Khalifs and the Armenian people. In wars against the enemies of the Arabs, members of this family had many successes. Once a Persian prince revolted against the Khalif and a Persian army of 80,000 marched into Armenia. The Arabs were too weak to make any resistance, but Ashot Bagratuni with his troops defeated the invaders. After the victory, the Khalif of Bagdad sent a crown to Ashot, thus making him a king, thinking, "He is so powerful that, if I do not give him a crown, he will seize one for himself."
Thus in 885 Ashot became the first king of the Bagratuni dynasty. The Greek emperor, Basil I., also sent a crown to Ashot, with a view to gaining the friendship and influence of Armenia. During the dominion of the Bagratuni, the régime of the Arsacidae was restored and the country prospered. Ani, which was the seat of government during the greater part of this period, though formerly it was little more than a fortress, became one of the most flourishing cities of the time. It was full of fine edifices--churches, palaces, museums, etc.--and was called "the city of a thousand and one churches." Its fame even spread to foreign lands.
There were several other noble Armenian families with ambitions. In 908 one of these--the Ardzruni family--made the lands they held into a kingdom, called Vaspurakan, with Van as a capital city. In taking this step they were encouraged by the Arabs, who were watching with alarm the growing power of the Bagratuni.
The most renowned as well as the wisest and most powerful king of this dynasty was Gagik I. (990-1020), under whom the country enjoyed its period of greatest prosperity. The danger of the Arabs was past, but now a new peril threatened the East, that of the Seljukian Turks, who came from Central Asia in search of a new country. Persia and Mesopotamia fell before them and they entered Armenia. Several of the Armenian princes offered them stout resistance with some success, but, fearing that this success was only temporary, others transferred themselves and their subjects to more secure parts of the country. The Seljuks conquered Persia and established a Persian kingdom of their own, but the new Persia was no longer Zoroastrian, but Mohammedan. Armenia again became a battlefield. The Greeks also claimed the city of Ani, and this led to many conflicts in which the Armenians made a brave defence. The town, however, fell through treachery and the Greeks devastated some parts of the country, treating the inhabitants no better than the Arabs and the Seljuks had done. In order to weaken the power of Armenia, they also made attempts to exterminate the native princes and nobles. About the same time, the Seljuks again invaded Armenia and completed the desolation which the Greeks had begun. They wrought great destruction in Ani. The last king of the Bagratuni dynasty was unable to re-establish his kingdom and was killed by the Greeks. His two sons and his grandson were poisoned. So ended the race of the Bagratuni whose dynasty had lasted 160 years. During the rule of this house, the country had a period of rest and the energies of the people were directed to the restoration and development of the country. The ruined monasteries and churches were rebuilt, schools were again established; commerce, arts, and handicrafts throve. This was a particularly flourishing time for the national architecture, which now assumed a new character. Most of the Armenian abbeys and churches were built during