On December 25, 1991, Gorbachev resigned as president of the USSR. By December 31, 1991 all official Soviet institutions had stopped to function in different "republics" of the Soviet Union. The individual governments of these republics started functioning. The Soviet flag flew last time over the Kremlin.