Keene's first major role was to negotiate the Treaty of Seville, ending the 1727 to 1729 Anglo-Spanish War; credit for the treaty was taken by William Stanhope, who returned from two years absence in London for the purpose. He also negotiated the 1739 Convention of El Pardo, an attempt to prevent war between the two states; the terms were denounced by British merchants, and never ratified.