I, very early thought it would be best to effect a peace through the medium of war.
Context: In this case, he was referring to the situation with the Barbary Pirates who had an incredible extortion racket going in the Mediterranean. If nations would pay them an annual sum each year, they would not attack and seize merchant ships of that country and sell the ships and goods while holding the sailors for ransom. Jefferson favored and authorized war—a naval attack which for many reasons the European nations had not done (they just paid the tribute). Then a peace treaty was finally signed—the first American Treaty.
Thomas Jefferson, 1743-1826, 3rd President of the United States (Democratic Republican, VA), Letter to John Adams, Quoted in Joseph Wheelan, Jefferson’s War
Sourced by: Eigen's Political and Historical Quotations