In 1827, the Third National Assembly at Troezen selected Count Ioannis Kapodistrias, who had previously been in Russia's diplomatic service, as Governor of Greece for a term of seven years. He arrived in Greece in January 1828 and established the Hellenic State, ruling with quasi-dictatorial powers. He was assassinated by political rivals in 1831 and was succeeded by his brother, Augustinos Kapodistrias until in 1832 the Great Powers declared Greece a Kingdom and selected the Bavarian Prince Otto to be its king.