The Soviet Union faced numerous internal problems that contributed to its collapse, including nationalism and ethnic diversity with over 100 ethnic groups within its borders, worker morale declined as shortages increased standard of living, and Gorbachev's reforms of glasnost and perestroika opened up criticism of the government and decentralization but did not do enough to solve economic issues. An attempted coup by communist hardliners in 1991 failed when people resisted, and soon after the Soviet Union dissolved into 15 independent republics, bringing an end to 74 years of Soviet rule.