During the time of glasnost and the reassessment of Soviet history in the USSR, the USSR condemned the 1939 secret protocol between Nazi Germany and itself that had led to the invasion and occupation of the three Baltic countries. The collapse of the Soviet Union led to the restoration of the Republic of Estonia's sovereignty.