Farajollah Khan and his loyal Moshasha emerged victorious and captured Basra in name of the Safavid Shah, prompting Shaykh Mane to flee.
When the Safavids realized that Shaykh Mane and his tribesmen were keen to retake Basra, and even wanted to attack Hoveyzeh, the provincial capital of Arabestan Province, Shah Sultan Husayn issued a farman (a decree), ordering an army from the Safavid province of Lorestan led by Ali Mardan Khan, chief of the Fayli tribe and the governor of Kohgiluyeh, to move on Basra.
On 26 March 1697 regular Safavid troops took control of the city, and Ali Mardan Khan was appointed governor.
This marked the start of the second period of Safavid control of Basra.
Later that year, Ali Mardan Khan was replaced by Ebrahim Khan, the governor of Dawraq (modern-day Shadegan, Khuzestan).

Though the Safavids had established control over Basra, they refrained from laying "full and definitive claim" to the city.
Sultan Husayn's government was still concerned not to disrupt the peace with the Ottomans.
Furthermore, they were aware of Iran's military weakness at the time and realized it would be "difficult to hold on to a city located in an extremely volatile region".
The activities of the Kurdish rebel Suleiman Baba, who had captured the town of Ardalan and the fortress of Urmia near the Ottoman border in the same year, reinforced their concerns.
In late 1697, Shaykh Mane, having made peace with his former enemy Farajollah Khan, and assisted by Moshasha defectors, defeated a large Safavid force near the fortress of Khurma (Khorma) and captured their general.
This forced Sultan Husayn to offer the Basra to the Ottomans.
Sultan Husayn had keys made of pure gold and sent Rostam Khan Zanganeh as ambassador to Constantinople, to hand them over to the Ottoman Sultan Mustafa II (r. 1695–1703), in a symbolic gesture offering the city to Ottoman control.
However, although the Safavids continued showing a willingness to return Basra to the Ottomans and entertained an Ottoman embassy in Isfahan between December 1698 and April 1699, Basra would stay in Safavid hands until 1701.

In early 1700, Shaykh Mane reappeared before the city of Basra and demanded 500 tomans from its Safavid governor, Ebrahim Khan.
The governor, who was short of troops, bought Shaykh Mane off by paying 300 tomans and was reinforced by 6,000 soldiers from the province of Kohgiluyeh.
The Arab forces continued to pressure the city, which prompted the Shah to recall Ebrahim Khan later that year and replace him with Davud Khan, the former governor of Al-Qurna.
Subsequently, the Arabs blockaded Basra, which caused a famine.
This situation continued into 1701.
By February of that year, the 6,000-strong Safavid garrison, demoralized by lack of pay and the news that a massive Ottoman army was heading for Basra, revolted against the Safavid governor and looted numerous properties in Basra.
The Ottoman army reached Basra on 9 March 1701, demanding the Safavids surrender.
Davud Khan and the Safavid troops in Basra left the city and boarded ships that had been kept at the ready.
On 10 March 1701, the newly appointed Ottoman governor, Ali Pasha, entered Basra accompanied by the Ottoman governors of Baghdad, Sivas and Kirkuk, as well as some 30,000 Ottoman soldiers.
Farajollah Khan and his loyal Moshasha emerged victorious and captured Basra in name of the Safavid Shah, prompting Shaykh Mane to flee. When the Safavids realized that Shaykh Mane and his tribesmen were keen to retake Basra, and even wanted to attack Hoveyzeh, the provincial capital of Arabestan Province, Shah Sultan Husayn issued a farman (a decree), ordering an army from the Safavid province of Lorestan led by Ali Mardan Khan, chief of the Fayli tribe and the governor of Kohgiluyeh, to move on Basra. On 26 March 1697 regular Safavid troops took control of the city, and Ali Mardan Khan was appointed governor. This marked the start of the second period of Safavid control of Basra. Later that year, Ali Mardan Khan was replaced by Ebrahim Khan, the governor of Dawraq (modern-day Shadegan, Khuzestan).
Though the Safavids had established control over Basra, they refrained from laying "full and definitive claim" to the city. Sultan Husayn's government was still concerned not to disrupt the peace with the Ottomans. Furthermore, they were aware of Iran's military weakness at the time and realized it would be "difficult to hold on to a city located in an extremely volatile region". The activities of the Kurdish rebel Suleiman Baba, who had captured the town of Ardalan and the fortress of Urmia near the Ottoman border in the same year, reinforced their concerns. In late 1697, Shaykh Mane, having made peace with his former enemy Farajollah Khan, and assisted by Moshasha defectors, defeated a large Safavid force near the fortress of Khurma (Khorma) and captured their general. This forced Sultan Husayn to offer the Basra to the Ottomans. Sultan Husayn had keys made of pure gold and sent Rostam Khan Zanganeh as ambassador to Constantinople, to hand them over to the Ottoman Sultan Mustafa II (r. 1695–1703), in a symbolic gesture offering the city to Ottoman control. However, although the Safavids continued showing a willingness to return Basra to the Ottomans and entertained an Ottoman embassy in Isfahan between December 1698 and April 1699, Basra would stay in Safavid hands until 1701.
In early 1700, Shaykh Mane reappeared before the city of Basra and demanded 500 tomans from its Safavid governor, Ebrahim Khan. The governor, who was short of troops, bought Shaykh Mane off by paying 300 tomans and was reinforced by 6,000 soldiers from the province of Kohgiluyeh. The Arab forces continued to pressure the city, which prompted the Shah to recall Ebrahim Khan later that year and replace him with Davud Khan, the former governor of Al-Qurna. Subsequently, the Arabs blockaded Basra, which caused a famine. This situation continued into 1701. By February of that year, the 6,000-strong Safavid garrison, demoralized by lack of pay and the news that a massive Ottoman army was heading for Basra, revolted against the Safavid governor and looted numerous properties in Basra. The Ottoman army reached Basra on 9 March 1701, demanding the Safavids surrender. Davud Khan and the Safavid troops in Basra left the city and boarded ships that had been kept at the ready. On 10 March 1701, the newly appointed Ottoman governor, Ali Pasha, entered Basra accompanied by the Ottoman governors of Baghdad, Sivas and Kirkuk, as well as some 30,000 Ottoman soldiers.
Safavid occupation of Basra