As member of the Hanseatic League, Riga used to be an important partner for the trades around the Baltic sea. It used to be under the control of German merchants, and in the last century Latvia became part of the Soviet Union. It announced its independence in 1992.