 In the 17th century Lviv was besieged unsuccessfully several times.Constant struggles against invading armies gave it the motto "Semper fidelis".In 1649, the city was besieged by the Cossacks under Bohdan Khmelnytsky, who seized and destroyed the local castle.