Developing of inexpensive and high-performance materials for hydrogen storage as clean, sustainable, and renewable energy sources is crucial to replace fossil fuels. Electrochemical hydrogen storage capacity of Co 9 S 8 nanoparticles codoped (via S and N) porous carbon nanocomposite (Co 9 S 8 @NSC) that is derived from the pyrolysis of Quercus Infectoria biomass and cobalt nitrate is investigated. Porous carbon nanostructures are used to prepare the region for oxidation and complex reactions of Co compounds. Therefore, advantage of the presence of carbon surfaces containing N, S groups is the production of uniformly dispersed Co 9 S 8 nanoparticles. The electrochemical hydrogen storage capacity of the Co 9 S 8 @NSC nanocomposite has been measured with chronopotentiometry method using KOH (6M) solution. The best discharge capacity of hydrogen storage is found to be 3250 mAh g −1 (12.22 wt%) after 25 cycles. The preparation of carbon nanostructure with several functional groups and cobalt sulfide nanoparticles dispersed on its surface is a simple method that provides a viewpoint for electrochemical hydrogen storage for the synthesis and design of multifunctional nanocomposite in wide-ranging.