The Treaty of Valençay (11 December 1813), after the château of the same name belonging to former French foreign minister Charles Maurice de Talleyrand, was drafted by Antoine René Mathurin and José Miguel de Carvajal y Manrique on behalf of the French Empire and the Spanish Crown respectively. Intended as the preliminary to a full peace treaty between France and Spain, the agreement provided for the restoration of Ferdinand VII of Spain, imprisoned at Valençay since 1808, to the Spanish throne usurped by Joseph Bonaparte.
Included in the terms was an armistice which neither side, mistrusting the other's intentions, fully intended to respect. It appears Napoleon also extracted an oath from Ferdinand in a secret protocol which required the Spanish monarch to turn the Spanish Army against the British and Portuguese should Wellington continue to use Spain as a base of operations against France. In any event, the Cádiz Cortes duly repudiated the treaty once Ferdinand reached the safety of Madrid. The Peninsular War would continue until Napoleon's defeat in France by the powers of the Sixth Coalition.