Via the <a href="https://en.wikipedia.org/wiki/Third_Treaty_of_San_Ildefonso" id="mwWw" rel="mw:WikiLink" title="Third Treaty of San Ildefonso">Third Treaty of San Ildefonso</a>, Spain cedes Louisiana to France, which would <a href="https://en.wikipedia.org/wiki/Louisiana_Purchase" id="mwXA" rel="mw:WikiLink" title="Louisiana Purchase">sell the land</a> to the United States thirty months later.