The invention discloses a dispersion compensation fiber-based dissipative soliton and soliton dual-wavelength laser, which comprises a laser light diode, a beam combiner, a gain fiber, a coupled output element, a polarization independent isolator, a polarization maintaining fiber, a carbon nano tube, a dispersion compensation fiber, a polarizer, a first polarization controller and a second polarization controller, wherein the beam combiner, the gain fiber, the coupled output element, the polarization independent isolator, the dispersion compensation fiber, the polarization maintaining fiber, the carbon nano tube, the first polarization controller, the polarizer and the second polarization controller are connected according to a fiber order to form an all-fiber ring cavity; and the laser light diode is connected with the beam combiner as a pump light source of the laser. By the dispersion compensation fiber-based dissipative soliton and soliton dual-wavelength laser, 2micron-waveband traditional soliton and dissipative soliton dual-wavelength laser light output can be achieved; the structure is simpler; the cost is lower; and dual-wavelength output mode conversion can be simply and conveniently achieved.