 Crown prince Abbas Mirza led a full-scale attack in the summer of 1826 order to recover the Iranian territories that had been lost by the Gulistan treaty.The war started off well for the Iranians; they quickly recaptured Ganja, Shirvan and Shaki amongst others, and performed attacks on Tiflis.The government then reinstated Mostafa in Shirvan.