Though Vargas lost the 1930 Brazilian general election for the presidency, he rose to power in 1930 under a provisional presidency following an armed revolution, remaining until 1934 where he was elected president under a 1934 constitution. Three years later, Vargas would seize powers under the pretext of a potential communist revolution, beginning an eight-year long dictatorship with Vargas at its center. In 1942, he led Brazil into World War II on the side of the Allies after being sandwiched between Nazi Germany and the United States. Though there was notable resistance, the major revolts – the Constitutionalist Revolution in Vargas's provisional presidency; the Communist uprising of 1935 in his constitutional presidency; and the Brazilian Integralist Action's putsch in his dictatorship – were all successfully suppressed, though the methods Vargas used in quelling his opposition ranged from light peace terms to jailing political opponents.