The invention discloses a nitrogen and sulfur-codoped graphene quantum dot and a preparation method thereof. The preparation method comprises the steps that after a precursor pyrene is mixed with 80-100 ml of fuming nitric acid, refluxing and stirring are performed, nitro functionalizing treatment is performed on the surfaces of pyrene grains, a reactant is taken out, filtered and deacidified, an appropriate amount of NaOH is added to regulate the PH value, dispersion treatment is performed by adopting 300-W ultrasonic waves, the reactant is transferred into a polytetrafluoroethylene tank for a hydrothermal reaction, and after natural cooling is performed, a reactant is taken out, filtered, dialyzed and then dried; after a graphene quantum dot is dissolved into an appropriate amount of deionized water, an appropriate amount of ammonia water is added according to the proportion of the reactant, uniform mixing is performed, the mixture and an appropriate amount of sublimed sulfur are fully mixed to be uniform through stirring, the mixture is transferred into a polytetrafluoroethylene tank, a hydrothermal reaction is performed for 24 h by keeping the temperature of 180 DEG C-200 DEG C, and after cooling is performed, a reactant is taken out, filtered and dialysed to obtain the nitrogen and sulfur-codoped graphene quantum dot. The preparation method is simple in synthesis process, high in yield and finished product rate, environmentally friendly, poisonless, few in impurity and capable of easily obtaining the raw materials.