Brazil was first visited by Portuguese explorers in 1500 and part of the Portuguese Empire until 1822, when the country became independent. In 1889 Brazil was declared a Republic. During World War One fought with the Allies against Germany. After the 1930 revolution Getulio Vargas became President and ruled as dictator. Brazil entered World War Two aside the Allied Forces and fought with bravery in Italy. President Vargas was forced to resign in 1945. In 1964 the Armed Forces seized power and remained there until 1985.