After his forced retirement in 1987, Aliyev remained in Moscow until 1990. He suffered a heart attack during this time. Aliyev opposed January 1990 Soviet military crackdown in Baku, which had followed conflict regarding Nagorno-Karabakh since 1988 between Azerbaijan SSR and Armenia.