The Treaty of Ryswick restored Pondicherry to the French in 1697.