Input: Relationship: 'end', Argument/Subject 1: 'treaty of guadalupe hidalgo', Argument/Subject 2: 'mexican war'

Answer: The Treaty of Guadalupe Hidalgo that ended the Mexican War awarded all lands north of the Rio Grande to the United States .