In 1917, in the wake of the Russian Revolution, the area constituted itself as the Moldavian Democratic Republic, an autonomous republic part of a proposed federative Russian state. Bolshevik agitation in late 1917 and early 1918 resulted in the intervention of the Romanian Army, ostensibly to pacify the region. Soon after, the parliamentary assembly declared independence, and then union with the Kingdom of Romania. The legality of these acts was however disputed, most prominently by the Soviet Union, which regarded the area as a territory occupied by Romania.