The United States and Spain signed the Treaty of Madrid to settle a decade of border disputes by fixing the southern boundary at the 31st parallel and granting American navigation rights on the Mississippi River. This agreement secured vital trade access for western farmers and eased tensions enough to allow the young nation to focus its expansion efforts westward rather than fighting a war with Spain.