In the spring of 1726 the Shahsevan of Moghan and Shaqaqi of Meshkin rose against the Ottomans in anger at their occupation of Ardabil under the leadership of 'Abd ar-Razzaq Khan, the governor of Karadagh. In May, an Ottoman force left Ardabil under the command of 'Abd ar-Rahman Pasha and defeated the tribesmen in Arshaq. In October 1728, the governor of Diyarbakir defeated the Shaqaqi in Meshkin and took their women and children captive. The Ottomans eventually crushed the rebels by January 1729. However, the Safavid Restoration and Tahmasp Qoli Khan's campaign left them no room to consolidate their hold on Azerbaijan. By 1732 Moghan was back under Iranian control.