The invention discloses an N, S co-doped metal-free CNS oxygen reduction catalyst and a preparation method thereof, and belongs to the technical field of energy materials and electrochemistry. Glucoseis used as a carbon source, g-C3N4 is used as a nitrogen source and a soft template agent, polysulfide is used as a sulfur source, and the three-dimensional porous carbon material catalyst is synthesized through a hydrothermal-calcination two-step method. The obtained CNS catalyst is of a three-dimensional porous graphene-like structure, the surface of the catalyst contains a large number of porestructures, and the ORR of the catalyst has the initial potential of 1.01 V and the half-wave potential of 0.88 V in an alkaline electrolyte and has better catalytic performance than a commercial Pt/C catalyst. The catalyst has a large number of pores, can expose more active sites, is beneficial to transmission of ORR reaction substances, and is beneficial to improvement of ORR catalytic activityof the material. The selected reagents are low in toxicity, wide in raw material source, low in cost, simple in preparation process, green, pollution-free, easy for large-scale production and beneficial to large-scale application. The catalyst can be used in fuel cells, metal-air cells and other acidic and alkaline primary and secondary cells involving ORR.