The invention discloses a method for preparing a nitrogen-producing carbon molecular sieve, which comprises the following steps: a. material proportion; b. fine pulverizing; c. extruding and moulding; d. high-temperature nitrogenous-base carbonizing; e. and high-temperature nitrogenous-base pore-forming treatment. Since the material selection, the material proportioning, the process parameter combination and the like of the invention are repeatedly tested, compared, concluded and summarized by the applicant, although the production method is not changed greatly, the obtained nitrogen-producing carbon molecular sieve has very prominent effect and has superior performance in several aspects such as the concentration of the produced nitrogen, the nitrogen yield, the recovery rate, the compressive strength and the like.