The present invention relates to the fields of material analysis chemistry, post-translational modification proteomics and the like, and provides a method for separating and enriching glycopeptides. According to the method, a highly nitrogen-doped carbon material having a two-dimensional porous crystal structure contacts a proteolysate, the hydrophilic interaction, the electrostatic interaction, CH3-pi and other actions between the material and glycopeptides are used, glycopeptides are separated and enriched by using a solid-phase extraction (SPE) or dispersive solid-phase extraction (dSPE) separation mode, and the sample is analyzed through mass spectrometry. According to the present invention, by optimizing the compositions, the pH values, the buffer salts and other parameters of the sample solution, the leaching solution and the eluent, the selective enrichment of glycopeptides is achieved; and the method has advantages of good stability, high selectivity, large adsorption capacity,strong flexibility, easy and controllable operation and the like, and can be used for the glycopeptide enrichment of standard products and complex samples.