Despite the region's troubled early years in the Soviet Union, it gradually began to recover with much of the area's infrastructure rebuilt and improved. During the Soviet era, Syunik was noted as a source of metal and ore production. However, the region was shaken by the renewal of the conflict over Nagorno-Karabakh with neighbouring Azerbaijan. In 1987–1989, the remaining Azeri inhabitants fled the region as a result of interethnic violence. This exodus of Azeri population made Syunik and Armenia, in general, more homogeneous.