The Republic of Latvia declared the end of the transitional period and restored full independence on 21 August 1991, in the aftermath of the failed Soviet coup attempt. Lativa resumed diplomatic relations with western states, including Sweden.