William Shaler (1773 – March 29, 1833) was an American writer, ethnographer, diplomat and confidential agent, assigned to Algiers, Mexico and Cuba.