The invention provides a fiber bragg grating combined optical fiber laser gas detection system with reference cavity compensation. The fiber bragg grating combined optical fiber laser gas detection system comprises an optical fiber laser, an optical isolator, a coupler, a second wavelength division multiplexer, a third wavelength division multiplexer, a first photoelectric detector, a second photoelectric detector, a third photoelectric detector, a fourth photoelectric detector, and a feedback control unit which are sequentially connected, wherein the optical fiber laser comprises a laser diode pumping source, a first wavelength division multiplexer, an active optical fiber, a first fiber bragg grating and a second fiber bragg grating and respectively emits a first wavelength laser beam and a second wavelength laser beam, the coupler is used for carrying out power beam splitting on light beams, the light beams subjected to the beam splitting are respectively introduced into a reference air chamber and a detection air chamber, the second wavelength division multiplexer is connected with the reference air chamber, the third wavelength division multiplexer is connected with the detection air chamber, the first photoelectric detector and the second photoelectric detector are connected to the second wavelength division multiplexer, the third photoelectric detector and the fourth photoelectric detector are connected to the third wavelength multiplexer to generate a first optical intensity signal, a second optical intensity signal, a third optical intensity signal and a fourth optical intensity signal; the feedback control unit receives the first optical intensity signal, the second optical intensity signal, the third optical intensity signal and the fourth optical intensity signal and uses a comparing result as a feedback signal for regulating the optical fiber laser.