The present invention provides a deodorant that effectively deodorizes odors generated in living environments. The disclosed deodorant comprises metal-containing oxidized cellulose nanofibers containing a metal other than sodium in salt form and having a number-average fiber diameter of 100 nm or less. A method of producing a deodorant includes the following steps: contacting oxidized cellulose nanofibers containing a first metal in salt form, dispersed in a solvent, with a strong acid to substitute ions of the first metal contained in salt form by hydrogen atoms and contacting the oxidized cellulose nanofibers in which the ions of the first metal have been substituted by hydrogen atoms, dispersed in a solvent, with a salt of a second metal other than the first metal to produce metal-containing oxidized cellulose nanofibers containing the second metal in salt form and having a number-average fiber diameter of 100 nm or less.本發明提供將生活環境等中產生的臭味有效果地消臭之消臭劑。本發明之消臭劑包含以鹽的形式含有鈉以外的金屬且數平均纖維直徑為100nm以下之含金屬氧化纖維素奈米纖維。