On August 9, 1842, the United States and Great Britain signed the Webster-Ashburton Treaty, settling their dispute over the northern boundaries of Maine and Minnesota.
Read the full text of the treaty, online from the Avalon Project at Yale Law School.