<P> In July 1941, the Kingdom of Hungary, a member of the Tripartite Pact, took part in Operation Barbarossa, in alliance with Nazi Germany . Hungarian forces fought shoulder to shoulder with the Wehrmacht and advanced through the Ukrainian SSR deep into Russia, all the way to Stalingrad . However, by the end of 1942 the Soviet Red Army began pushing back the Wehrmacht through a series of offensives that preceded the Red Army's encroachment upon Hungarian territory in 1943--44 . In September 1944 Soviet forces crossed into Hungary, launching the Budapest Offensive . As the Hungarian army ignored the armistice with the USSR signed by the government of Miklós Horthy on 15 October 1944, the Soviets fought their way further westward against the Hungarian troops and their German allies capturing the capital on 13 February 1945 . Operations continued until 4 April 1945, when the last German forces and their remaining loyal Hungarian troops were routed out of the country . </P> <P> The Soviets made sure that a loyal post-war government dominated by Communists was installed in the country before transferring authority from the occupational force to the Hungarian authorities . The presence of Soviet troops in the country was regulated by the 1949 mutual assistance treaty concluded between the Soviet and Hungarian governments . The Hungarian Revolution of 1956 was a spontaneous nationwide revolt against the Communist government of Hungary and its Soviet - imposed policies . After announcing a willingness to negotiate the withdrawal of Soviet forces, the Soviet Politburo changed its mind . On 4 November 1956, a large joint military force of the Warsaw Pact led by Moscow, entered Budapest to crush the armed resistance, killing thousands of civilians in the process . </P> <P> After the collapse of the Soviet Union, the last Soviet soldier left the country in 1991, thus ending Soviet military presence in Hungary . </P> <P> The Soviet's second Jassy - Kishinev Offensive led to defeat of Romania, subsequent coup d'état, and the switch of Romania from the Axis to the Allies . The Soviet troops were stationed in this country from 1944 and 1958 . On 12 September 1944, with the Red Army already controlling much of Romania's territory, an Armistice Agreement between Romania and the USSR was signed, under which Romania retroceded the territory it administered earlier in the war, and subjected itself to an allied commission consisting of the Soviet Union, the United States, and the United Kingdom . On the ground, it was the Soviet military command, and not the Western allies, that de facto exercised dominant authority . The presence and free movement of Soviet troops was explicitly stipulated in the agreement . </P>

After world war 2 the soviet union tried to make european countries