Answer
The Ottoman–Safavid War of 1639 was the last major conflict between the Ottoman Empire and the Safavid Empire of Persia. The war was fought over control of the Caucasus and Mesopotamia. The war ended with the signing of the Treaty of Zuhab, which roughly established the borders of the Ottoman, Safavid, and Persian empires for the next two centuries.