Early in the 1190s, the Georgian government began to interfere in the affairs of the Eldiguzids and of the Shirvanshahs, aiding rivaling local princes and reducing Shirvan to a tributary state. The Eldiguzid atabeg Abu Bakr attempted to stem the Georgian advance, but suffered a defeat at the hands of David Soslan at the Battle of Shamkor[14] and lost his capital to a Georgian protégé in 1195. Although Abu Bakr was able to resume his reign a year later, the Eldiguzids were only barely able to contain further Georgian forays.[15][16]