In 1285, the city became a part of the Hanseatic League. As a result, in the Middle Ages Tallinn was an important stop on the trade routes between Europe and Russia. During its history Estonia has been ruled at times by Sweden and by Russia. It became independent in 1918 after World War I, but after World War II it was ruled by the USSR. In March 1944 Tallinn was bombed by Soviet Air Force, killing 436 civilians and totally destroying 5073 buildings. Since 1991, Tallinn has been the capital of an independent Estonia.