In 1123, David's army liberated Dmanisi, the last Seljuk stronghold in southern Georgia. In 1124, David finally conquered Shirvan and took the Armenian city of Ani from the Muslim emirs, thus expanding the borders of his kingdom to the Araxes basin. Armenians met him as a liberator providing some auxiliary force for his army.