By the Treaty of Bucharest (1812), signed in May just before the Napoleonic invasion of Russia, Turkey gave up Bassarabia in the west but regained nearly all it had lost in the east: Poti, Anapa and Akhalkalali.