The career of John Quincy Adams had three major phases—diplomat, president, and congressman—and the documents that best reveal his thinking and accomplishments are different for each time period. As a diplomat, Adams often expressed his goals in conversations with superiors, fellow cabinet officers, and foreign diplomats that were meticulously recounted in his diaries. His diary entries of February 1819, for example, bring to light the formulation of the Adams-Onís Treaty. Considered a triumph of American diplomacy, the Adams-Onís Treaty between the United States and Spain, named for Adams and counterpart Luis de Onís, gave Florida to the United States and laid out a continent-crossing boundary between the U.S. and the Viceroyalty of New Spain.