The invention discloses a method of preparing near-infrared carbon quantum dots by taking Coomassie brilliant blue as a carbon source. The preparation method comprises the following steps: weighing a certain amount of turmeric extraction residue, placing the turmeric extraction residue in a reaction kettle, adding an appropriate amount of secondary water, placing the turmeric extraction residue in an electrothermal blowing dry oven and reacting, after the reaction is ended, taking out the turmeric extraction residue, naturally cooling to a room temperature, and filtering to obtain a carbon quantum dot solution for later use; preparing a Coomassie brilliant blue solution, uniformly mixing the Coomassie brilliant blue solution with carbon quantum dots, adding an appropriate amount of secondary water, transferring the mixed solution to a hydrothermal reaction kettle, placing the mixed solution in the electrothermal blowing dry oven for reacting, after the reaction is ended, taking out the mixed solution, naturally cooling to the room temperature, and filtering to obtain the near-infrared carbon quantum dots. The product obtained by the method disclosed by the invention is stable in property and good in fluorescence performance, has important application value in the fields of bioimaging, sensing, medicine delivery, photocatalysis, biological living imaging and the like, and uses the turmeric extraction residue as a raw material for realizing waste recycling without the need of a catalyst.