The sixth cabinet of Azerbaijan Democratic Republic was in the process of being formed by Mammad Hasan Hajinski when the Red Army occupied Azerbaijan and power was passed to the Bolsheviks.