Independent for three years ( 1918 - 1921 ) following the Russian revolution , it was forcibly incorporated into the USSR until the Soviet Union dissolved in 1991 .