quality:correction, linguistic:paraphrasing
German occupation

On 22 June 1941, Nazi Germany and several of its allies invaded the USSR. In the initial stage of Operation Barbarossa (30 June 1941) Lviv was taken by the Germans. The evacuating Soviets killed most of the prison population, with arriving Wehrmacht forces easily discovering evidence of the Soviet mass murders in the city committed by the NKVD and NKGB. On 30 June 1941 Yaroslav Stetsko proclaimed in Lviv the Government of an independent Ukrainian state allied with Nazi Germany. This was done without preapproval from the Germans and after 15 September 1941, the organisers were arrested.

The Sikorski–Mayski Agreement signed in London on 30 July 1941 between Polish government-in-exile and USSR's government invalidated the September 1939 Soviet-German partition of Poland, as the Soviets declared it null and void. Meanwhile, German-occupied Eastern Galicia at the beginning of August 1941 was incorporated into the General Government as Distrikt Galizien with Lviv as the district's capital. German policy towards the Polish population in this area was as harsh as in the rest of the General Government.

Germans during the occupation of the city committed numerous atrocities including the killing of Polish university professors in 1941. German Nazis viewed the Ukrainian Galicians, former inhabitants of Austrian Crown Land, as to some point more aryanised and civilised than the Ukrainian population living in the territories belonging to the USSR before 1939. As a result, they escaped the full extent of German acts in comparison to Ukrainians who lived to the east, in the German-occupied Soviet Ukraine turned into the Reichskommissariat Ukraine.

According to the Third Reich's racial policies, local Jews then became the main target of German repressions in the region. Following the German occupation, the Jewish population was concentrated in the Lwów Ghetto established in the city's Zamarstynów (today Zamarstyniv) district and the Janowska concentration camp was also set up. In the Janowska concentration camp, the Nazis conducted torture and executions to music. The Lviv National Opera members, who were prisoners, played one and the same tune, Tango of Death.

On the eve of Lviv's liberation, German Nazis ordered 40 orchestra musicians to form a circle. The security ringed the musicians tightly and ordered them to play. First, the orchestra conductor, Mund, was executed. Then the commandant ordered the musicians to come to the center of the circle one by one, put their instruments onto the ground and strip naked, after which they were killed by a headshot. A photo of the orchestra players was one of the incriminating documents at the Nuremberg trials.

In 1931 there were 75,316 Yiddish -speaking inhabitants, but by 1941 approximately 100,000 Jews were present in Lviv. The majority of these Jews were either killed within the city or deported to Belzec extermination camp. In the summer of 1943, on the orders of Heinrich Himmler, SS-Standartenführer Paul Blobel was tasked with the destruction of any evidence of Nazi mass murders in the Lviv area. On 15 June Blobel, using forced labourers from Janowska, dug up a number of mass graves and incinerated the remains.

Later, on 19 November 1943, inmates at Janowska staged an uprising and attempted a mass escape. A few succeeded, but most were recaptured and killed. The SS staff and their local auxiliaries then, at the time of the Janowska camp's liquidation, murdered at least 6,000 more inmates, as well as the Jews in other forced labour camps in Galicia. By the end of the war, the Jewish population of the city was virtually eliminated, with only around 200 to 800 survivors remaining.