In the early 90's Armenia fought a war with Azerbaijan about Karabach. Since then Nagorno Karabach is a small Armenian enclave surrounded by Azerbaijan. The city of Shushi was a mostly inhabited by Azerbaijani before the war. Nowadays only Armenians live there. Many are refugees who feld from Azerbaijan during the war.