Napoleon's interest in the Middle East and India waned when he finally vanquished Russia at the Battle of Friedland in July 1807, leading to the Treaty of Tilsit, in December 1807. France as an ally of Russia became a strong repellent to both the Ottoman Empire and Persia. Great Britain signed a mutual defense treaty with Shah Shuja al-Mulk of Afghanistan on 17 June 1809 in order to better resist the Franco-Persian threat, but by that time Persia had already denounced its alliance with France and was moving towards Great Britain. These last events rendered the Franco-Indian alliance impossible to pursue further.