Why did communism in the Soviet Union collapse?

Among many other things was rampant internal corruption.