Lalitaditya invaded the Antarvedi country, whose capital was located at Gadhipura (Kanyakubja). The defending king Yashovarman submitted to him after a long war and offered a peace treaty. Yashovarman drew up a document outlining the terms of this treaty, titled ""The treaty of Yashovarman and Lalitaditya"". Lalitaditya's minister Mitrasharman objected to this title, and insisted that Lalitaditya's name appear before Yashovarman's name in the title. Lalitaditya's generals, who were uneasy about the long duration of the war, blamed Mitrasharman for delaying the treaty. But Lalitaditya himself was pleased with Mitrasharman: he broke off the peace negotiations, and "uprooted" Yashovarman. As a result of this defeat, Yashovarman, who had been served by the court poets such as Vakpati and Bhavabhuti, himself became a panegyrist of Lalitaditya. The land of Kanyakubja, located between the Yamuna river and the Kalika river (possibly modern Kali Nadi), came under Lalitaditya's control.