Subsequently , the Ottoman and Persian empires competed for influence in the region .