Answer:
"Under the OnĂs-Adams Treaty of 1819 (also called the Transcontinental Treaty and ratified in 1821) the United States and Spain defined the western limits of the Louisiana Purchase and Spain surrendered its claims to the Pacific Northwest. In return, the United States recognized Spanish sovereignty over Texas."