Pietro Fanfani (21 April 1815, in Pistoia, Italy – 4 March 1879, in Florence) was an Italian philologist, humorist and novelist.
He studied medicine, but gave his attention chiefly to philology, and in 1847 founded at Pistoia a magazine relating to that science, Ricordi filologici (“Philological Record”).
The next year, he enlisted in the war against the Austrians, and fell into their hands.
After his release, he published (1849) critical comments on the dictionary of the Academy della Crusca, which involved him in an acrimonious and successful controversy with that institution.
Subsequently, he held an office under the Tuscan government at Florence, where in 1859 he became director of the famous Biblioteca Marucelliana (“Marucellian Library”), which post he held until his death.