 After the Sumgait tragedy a massive migration of Armenians from Azerbaijan and Azerbaijanis from Armenia began.By 1989 the Armenians stayed only in those places where they had a well-established community, including in Baku.By the beginning of 1990 there were only about 30–40 thousand Armenians left in Baku, mostly women and pensioners.