On 5 May 1945, in the last moments of the war in Europe, citizens of Prague spontaneously attacked the occupiers and Czech resistance leaders emerged from hiding to guide them. German troops counterattacked, but progress was difficult due to the defection of the Russian Liberation Army and barricades constructed by the Czech citizenry. On 8 May, the Czech and German leaders signed a ceasefire allowing the German forces to withdraw from the city, but not all SS units obeyed. When the Red Army arrived on 9 May, the city was already almost liberated.