After the end of the Soviet Union with the independence of Azerbaijan and the Nagorno-Karabakh War, almost all Armenians (outside the separatist region of Nagorno-Karabakh) fled or were deported from the country. At the same time, almost all Azerbaijanis fled or were deported from Armenia and Nagorno-Karabakh. 