By the Adams-Onís Treaty, Spain sells Florida to the United States for five million U.S. dollars.

The Adams–Onís Treaty (Spanish: Tratado de Adams-Onís) of 1819, also known as the Transcontinental Treaty, the Florida Purchase Treaty, or the Florida Treaty, was a treaty between the United States and Spain in 1819 that ceded Florida to the U.S. and defined the boundary between the U.S. and New Spain. It settled a standing border dispute between the two countries and was considered a triumph of American diplomacy. It came in the midst of increasing tensions related to Spain's territorial boundaries in North America against the United States and the United Kingdom in the aftermath of the American Revolution; it also came during the Latin American wars of independence.

Florida had become a burden to Spain, which could not afford to send settlers or garrisons, so the Spanish government decided to cede the territory to the United States in exchange for settling the boundary dispute along the Sabine River in Spanish Texas. The treaty established the boundary of U.S. territory and claims through the Rocky Mountains and west to the Pacific Ocean, in exchange for the U.S. paying residents' claims against the Spanish government up to a total of $5 million and relinquishing the U.S. claims on parts of Spanish Texas west of the Sabine River and other Spanish areas, under the terms of the Louisiana Purchase.

The treaty remained in full effect for only 183 days: from February 22, 1821, to August 24, 1821, when Spanish military officials signed the Treaty of Córdoba acknowledging the independence of Mexico; Spain repudiated that treaty, but Mexico effectively took control of Spain's former colony. The Treaty of Limits between Mexico and the United States, signed in 1828 and effective in 1832, recognized the border defined by the Adams–Onís Treaty as the boundary between the two nations.