After the fall of the Safavid Dynasty, Russia and the Ottoman Empire agreed to divide the northwest and the Caspian region of Persia, but with the advent of Nadir Shah, the Russians and the Turks withdrew from the region.