John W. Foster (born March 2, 1836, Pike county, Indiana, U.S.—died November 15, 1917, Washington, D.C.) was a diplomat and U.S. secretary of state (1892–93) who negotiated an ill-fated treaty for the annexation of Hawaii.
After service in the Union army during the Civil War, Foster, a lawyer and newspaper editor in Evansville, Indiana, was active in state Republican affairs. He served as minister to Mexico (1873–80), minister to Russia (1880–81), and minister to Spain (1883–85).
Appointed secretary of state by President Benjamin Harrison in 1892, Foster tacitly encouraged American interests in Hawaii in their revolt against Queen Liliuokalani and negotiated a treaty (1893) for the annexation of Hawaii (which, at the urging of his successor, Secretary of State Walter Quinton Gresham, was withdrawn from Senate consideration by the newly installed administration of President Grover Cleveland). Foster resigned in early 1893 in order to represent the United States in the Bering Sea controversy before an arbitration tribunal at Paris.