Prince Otto of Bavaria was elected king of newly independent Greece in 1832 and was forced to abdicate in 1862. King Otto I of the House of Wittelsbach was made the first King of modern Greece in 1832 under the Convention of London, whereby Greece became a new independent kingdom under the protection of the Great Powers (the United Kingdom, France and the Russian Empire). Throughout his reign, Otto faced political challenges concerning Greece's financial weakness and the role of the government in the affairs of the Church. The politics of Greece of this era was based on affiliations with the three Great Powers, and Otto's ability to maintain the support of the powers was key to his remaining in power. To remain strong, Otto had to play the interests of each of the Great Powers’ Greek adherents against the others, while not aggravating the Great Powers. When Greece was blockaded by the (British) Royal Navy in 1850 and again in 1853, to stop Greece from attacking the Ottoman Empire during the Crimean War, Otto's standing amongst Greeks suffered. As a result, there was an assassination attempt on the Queen and finally, in 1862, Otto was deposed while in the countryside. In 1863 the Greek National Assembly elected Prince William of Denmark, aged only 17, "King of the Hellenes" under the regal name of George I.