The city was incorporated into Lithuania during its tenure as a Soviet Socialist Republic and has remained within Lithuania following its re-establishment as an independent state .
The city became part of Lithuania while it was a Soviet Socialist Republic .