A nonlinear optical loop mirror (NOLM)-based linear cavity switchable multi-wavelength erbium-doped fiber (EDF) laser is proposed and experimentally demonstrated. Due to the characteristics of the intensity-dependent transmissivity, the NOLM can effectively mitigate the mode competition of the homogenous broadening gain medium, so that the multi-wavelength lasing can be achieved at room temperature. By adjusting the states of the polarization controllers (PCs), the number of the lasing wavelengths in the proposed laser can be adjusted flexibly from 11 to 13 with a wavelength spacing of 0.4 nm around the wavelength of 1 530 nm.Multi-wavelength fiber laser has given rise to great research interest for its widespread applications in wavelength division multiplexing (WDM) transmission systems, optical sensors, optical measurement and so on. In particular, multi-wavelength erbium-doped fiber (EDF) lasers have attracted much attention in recent years due to the characteristics of low threshold, broad gain bandwidth and high power conversion efficiency. However, the major barrier for multi-wavelength EDF lasers to attain stable multi-wavelength lasing at room temperature is the fierce mode competition. One straight method is to cool the EDF in liquid nitrogen to alleviate the homogeneous gain broadening effect [1] . Obviously, this technique is not suitable for the practical applications. Hence, others methods have been proposed to alleviate the mode competition, such as adding a frequency shifter or a phase modulator in the oscillation cavity to avoid the single mode operation [2,3] , inserting a semiconductor optical amplifier to introduce the inhomogeneous broadening gain [4] , using nonlinear gain of cascaded stimulated Brillouin scattering or stimulated Raman scattering in the laser cavity to compose hybrid gain fiber laser [5][6][7][8] , providing four-wave-mixing to even amplitude of simultaneous multi-wavelength oscillation [9,10] and utilizing nonlinear polarization rotation to induce intensity-dependent loss (IDL) for multi-wavelength oscillations [11,12] . But all these techniques inevitably add the excess complexity and the cost to the multi-wavelength lasers. In contrast, the nonlinear optical loop mirror (NOLM), which only consists of a polarization controller (PC), a segment of single-mode fiber (SMF) and an optical coupler, has the characteristics of simple constitution and costless components [13][14][15] .In this paper, we propose and experimentally investigate an NOLM-based linear cavity switchable multi-wavelength EDF laser. The NOLM can effectively provide the IDL, which can mitigate the mode competition in the gain media of EDF and result in the multi-wavelength output at room temperature. A polarization maintaining fiber (PMF)-based Sagnac interferometer, which includes a PC, a segment of PMF and a 3 dB optical coupler, serves as the comb filter. By adjusting the PCs in the NOLM and the Sagnac interferometer, 11 to 13 lasing wavelengths can be gained at room temperature, which is more than that in...