Azerbaijan was an independent republic between 28 May 1918 and 28 April 1920 when Baku was reoccupied by the Red Army.