The Treaty of Guadalupe Hidalgo led to the establishment in 1889 of the International Boundary and Water Commission to maintain the border, and pursuant to newer treaties to allocate river waters between the two nations, and to provide for flood control and water sanitation.