The invention discloses a rapid food and drug detection method based on a near infrared technology. The method comprises the following steps: collecting a modeling detection sample, establishing a near infrared technology analysis model, debugging the model data, performing rapid field detection, drawing a conclusion and preserving the conclusion. According to the method disclosed by the invention, the rapid field detection is performed by utilizing a near infrared spectrum, and the information is simple and rich; nondestructive sampling is adopted, direct sample introduction is realized, the operation is simple, pretreatment of the sample is not needed, the sample is green and environmental-friendly, and the performance is reliable; only the detection amount of 0.1mg is needed, related consumables and maintenance cost are avoided, the operating cost and environmental protection risk are reduced, lots of manpower, material resources and financial resources are saved, actual problems such as long-term hidden grass-roots criminal activities, wide supervision range, large quantity and high difficulty are effectively solved, and the aim of guaranteeing the quality safety of foods and drugs is achieved.