Abstract:A tunable and switchable dual-wavelength erbium-doped fiber laser (EDFL) based on all-fiber single-mode tapered fiber structure has been demonstrated. By adjusting the variable optical attenuator (VOA), the laser can be switched between the single-wavelength mode and the dual-wavelength mode. When the temperature applied on the tapered fiber structure varies, the pass-band varies and the wavelength of the output laser shifts correspondingly. When the temperature changes from 30 °C to 180 °C, the central wavelength of the EDFL generated by branch A shifts from 1 550.7 nm to 1 560.3 nm, while that of branch B shifts from 1 530.8 nm to 1 540.4 nm, indicating the wavelength interval is tunable. These advantages enable this laser to be a potential candidate for high-capacity wavelength division multiplexing systems and mechanical sensors.