In this paper, the generation of dual-wavelength stable nanosecond pulses by a laser diode pumped Yb-doped double-clad fiber laser is presented. In the experiment, the fiber laser with two-mirror cavity is approved which operates in a self-Q-switchin