Iran is expanding its diplomatic presence in North Africa by strengthening ties with Algeria and Tunisia amid shifting regional dynamics.