During the Greek War of Independence, 1821–1830 the city was contested by the Ottoman forces. The city was officially liberated in 1832 after the Treaty of London. In 1833, the site was considered among the candidates for the new capital city of the recently founded Kingdom of Greece, due to its historical significance and strategic position. Nafplio was chosen initially, then Athens.