On December 8, 1991 Russia, Belarus and Ukraine stated that the USSR ceased to exist and signed an agreement on the creation of the CIS. Mikhail Gorbachev, the President of the Soviet Union, resigned on December 25, 1991. The Russian Federation assumed the USSR’s rights and obligations to become the recognized primary legal successor of the Soviet Union.
Source