The Soviet's second Jassy–Kishinev Offensive led to defeat of Romania, subsequent "royal coup d'état", and the switch of Romania from the Axis to the Allies. The Soviet troops were stationed in this country from 1944 to 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.