Treaty of Ryswick
In 1681, the Imperial City of Strasbourg, a territory of the Holy Roman Empire that included Kehl, was annexed by Louis XIV, King of France. This annexation was recognised by the Treaty of Ryswick in 1697, but all right-bank territories were restored to the Empire, leading to Kehl's cession to the Margraviate of Baden the following year.