A method of using a carbonized material to inhibit bacterial growth is provided, wherein the method includes the steps below. First, prove the carbonized material which includes an electrically conductive carbon-containing body, wherein the carbon-containing body is selected from the group consisting of carbon fiber fabric, graphene, and graphene oxide. Next, expose the carbonized material to a wet environment. Finally, provide a direct current to the carbon-containing body. Whereby, after the carbon-containing body is electrically energized by the direct current, hydrogen peroxide is synthesized form oxygen in the wet environment to inhibit bacterial growth.