On 25 October 1990, Kazakhstan declared its sovereignty on its territory as a republic within the Soviet Union. Following the August 1991 aborted coup attempt in Moscow, Kazakhstan declared independence on 16 December 1991, thus becoming the last Soviet republic to declare independence. Ten days later, the Soviet Union itself ceased to exist.