A multiwavelength erbium-doped fiber laser based on a polarization-dependent in-line Mach–Zehnder Interferometer (in-line MZI) is proposed and experimental demonstrated. The polarization-dependent in-line MZI demonstrated is constructed by sandwiching a length of polarization maintaining fiber (PMF) between two abrupt fiber tapers fabricated in SMF. The proposed in-line MZI can work as a cost-effective all-fiber-based polarizer. In combination with the nonlinear polarization rotation technique, stable multiwavelength laser comb with uniform wavelength spacing is achieved at room temperature. The wavelength spacing is 0.8 nm. By properly tuning the PCs, the output laser combs with double and triple channel spacing can be also obtained.