The invention discloses a device for generating Nyquist optical pulse based on an ultra-broadband optical frequency comb. The device comprises the following components: a narrow line-width laser, a first wavelength division multiplexer, a polarization controller, a Fabry-Perot electro-optic modulator, a temperature control device, an optical coupler, a circulator, a phase-shifted fiber bragg grating, an optical amplifier, a photoelectric detector, an electric amplifier, an electric phase shifter, a bias T, a direct-current bias, an optical band-pass filter, an optical spectrum analyzer, a quantum dot mode-locked laser, a second wavelength division multiplexer and a plurality of electro-optical modulators. By virtue of the device, the disadvantage of bandwidth of the conventional electronics method can be overcome; the device is used as a light source for optical fiber communication; the frequency spectrum utilization rate of an optical fiber communication system can be greatly improved.