The Persian–Portuguese war took place between 1507 and 1622 and involved the Portuguese Empire and its vassal, the Kingdom of Ormus, on one side, and the Safavid Empire of Persia with the help of the Kingdom of England on the other side. During this era, Portugal established its rule for about eighty years in Ormuz and Bahrain, capturing some other islands and ports such as Qeshm and Bandar Abbas for few years. The conflict came to an end when the Safavid Shah, Abbas I of Persia, conquered the Portuguese territories forcing them to leave the Persian Gulf.
In September 1507, the Portuguese Afonso de Albuquerque landed on the Hormoz. Portugal occupied Ormuz from 1515 to 1622. As a vassal of the Portuguese state, the Kingdom of Ormus jointly participated in the 1521 invasion of Bahrain that ended Jabrid rule of the Persian Gulf archipelago.
After the Portuguese made several abortive attempts to seize control of Basra, the Safavid ruler Abbas I conquered Ormus with the help of the English, and expelled the Portuguese from the rest of the Persian Gulf, with the exception of Muscat. The Portuguese returned to the Persian Gulf in the following year as allies of Afrasiyab, the Pasha of Basra, against the Persians.
The capture of Ormuz was a result of a plan by the king of Portugal, Manuel I, who in 1505 had resolved to thwart Muslim trade in the Indian Ocean by capturing Aden, to block trade through Alexandria; Ormuz, to block trade through Beirut; and Malacca to control trade with China. A fleet under Tristão da Cunha was sent to capture the Muslim fort on Socotra in order to control the entrance to the Red Sea; this was accomplished in 1507. The main part of the fleet then left for India, with a few ships remaining under Albuquerque.