After takeover of Azerbaijan by Bolsheviks on April 28, 1920 Rafiyev immigrated to Tabriz where he started a clinic and worked as a doctor until his death in 1938.