He was in position of power shifting between Georgia and Seljuks. He lost many castles to David IV of Georgia and his son Demetrius I of Georgia in 1117 and 1120. After decisive victory of Battle of Didgori Shah again began negotiations with Georgia. Seljuk Sultan Mahmud attacked Shirvan and took Shah as hostage contrary to Manuchehr's betrayal. David attacked and defeated Sultan again. Although his armies devastated Shirvan. Manuchehr restored his own power upon David's death in 1125 and started friendly relations with his brother-in-law Demetrius.