Peace reigned for many decades between the two peoples after these conflicts, in which trade and migration of peoples flourished. The decline of the Safavid and Ottoman state saw the rise of Imperial Russia on the other hand. After the fall of Shah Sultan Husayn brought the Safavid dynasty to an end in 1722, the greatest threats facing Persia were Russian and Ottoman ambitions for territorial expansion in the Caspian region—north-western Persia specifically. During the Safavid period, Russian and Persian power was relatively evenly balanced.