Adams–Onís Treaty
Spain finally recognized the independence of Mexico with the Treaty of Córdoba signed on August 24, 1821. While Mexico was not initially a party to the Adams–Onís Treaty, in 1831 Mexico ratified the treaty by agreeing to the 1828 Treaty of Limits with the U.S.