The invention discloses a method for generating supercontinuum from the communication band to the middle infrared based on a silicon nitride waveguide. The method comprises the steps of step 1, using an ultrashort pulse light source to emit the light which has a frequency of 8-12MHz, and a central wavelength of 1.4-2.2 micrometer, step 2, conducting lens coupling of ultrashort femtosecond pulses which is then infused into a ridge/groove hybrid reverse silicon nitride waveguide with a flat light dispersion, wherein the structure of the silicon nitride waveguide comprises a silica oxide layer arranged on a silicon plate, the grooves containing a single silica ridge is formed on the surface of the silica. The silicon nitride waveguide applies the structure of the ridge/groove hybrid to make the effect area of the light field small, and achieve a big non-linear coefficient of the waveguide. After high peak power femtosecond optical pulses are introduced into the waveguide, non-linear processes of self phase modulation, cross phase modulation, four-wave mixing, soliton frequency shift, dispersive wave generation and the like occur, and finally the supercontinuum from the communication band to the middle infrared is formed.