During the reign of
Hovhannes-Smbat (John-Smbat), a feudal lord,
David, who owned
Taik during his battles against the Muslims, gained a large area which stretched all the way to
Manzikert. David was a subject of
Byzantium and when he died his entire territory was occupied by
Basil II, who had resumed the policy of annexing Armenia to his empire piecemeal. This policy of occupation and expansion was also pursued by the successors of Basil II. By the death of Hovhannes-Smbat around 1040 and that of
Ashot IV shortly after,
Michael V, one of the successors of Basil II, was the emperor cornering Armenia. Michael claimed that the Kingdom of Ani by virtue of the will of Hovhannes-Smbat, was bequeathed to the Byzantine Empire upon his death. When the Armenian
sparapet (chief general),
Vahram Pahlavuni, prepared the coronation of the successor to Hovhannes-Smbat, the king's nephew, Gagik II, who at that time was only fourteen years old, the Byzantine emperor began supporting
vestes Sargis Haykazn, a pro-Byzantine Armenian prince and minister of the former king, who had initially been appointed
regent. After this the kingdom of Ani resisted three assaults of the Byzantine Empire, forcing them to retreat. Byzantium exerted its forces to the utmost in order to conquer Armenia and once and for all annexing it to the empire. To this end, they sent a great army to the southern part of Armenia and at the same time convinced the king of
Tashir-Dzoraget to attack Ani from the east. At the fierce battle that was fought by the walls of Ani, general Vahram Pahlavuni heavily defeated the Byzantine army, forcing them to leave 20,000 dead behind, according to contemporary Armenian chroniclers. This victory allowed Vahram Pahlavuni along with
Catholicos Petros I Getadardz to crown Gagik II king of Armenia and subsequently take the fortress of Ani, which was in the hands of Vest Sargis. Sargis fled to the fortress of St. Mary and was eventually captured. After this victory, the new Armenian king, together with Vahram, turned toward their second enemy, the
Seljuq Turks, who were still intent on conquering the kingdom. In the following two years Gagik reinforced the army and fought against Seljuq hordes.
Gregory Pahlavuni nephew of Vahram, defended the fortress of
Bjni. The Armenian army hurried to confront the enemy at the location of the present-day
Lake Sevan, where the king and his commander split the Armenian army into two units. The first division engaged in a battle with the Seljuq Turks and then pretended to retreat, drawing the Turks in pursuit toward the second army that was lying in ambush. The battle ended with a catastrophic defeat for the Seljuq Turks. In the Kingdom of
Vaspurakan, formerly under the protection of the Byzantine Empire where the population had been deserted by the imperial army, the people eagerly anticipated the Armenian king would be driving the Seljuq Turks out of their homeland. Under leadership of Gagik II, known for his courage as "the Lion," the Armenians revolted and the Turks were forced to retreat to Khoy and
Salmas. ==Deceit of Gagik II==