In 1840, the border between the United States and Mexico was defined by the 1828 Treaty of Friendship, Limits, and Navigation between the two nations.