The invention discloses a femtosecond laser direct-writing FBG array-based erbium-doped fiber laser. The femtosecond laser direct-writing FBG array-based erbium-doped fiber laser comprises a sensing fiber, wherein a wavelength division multiplexer, a C-band erbium-doped fiber, an L-band erbium-doped fiber, a polarization controller, a fiber circulator, a coupler, a pumping source, a spectrograph,an FBG array and a broadband reflecting mirror, wherein the FBG array is fabricated by a femtosecond laser direct-writing single-mode fiber, and three parallel FBG gratings are engraved on a fiber core of the single-mode fiber and are equal in length and different in reflection wavelength. Femtosecond laser is transmitted through a fiber protection layer, fiber Bragg gratings of which direct-writing periods are respectively 538 nanometers, 542 nanometers and 547 nanometers in the single-mode fiber without removing a coating layer are used as frequency selection devices, the C-band erbium-dopedfiber, the L-band erbium-doped fiber, the pumping source, the polarization controller and the broadband all reflecting mirror are combined to form a linear cavity fiber laser, single-wavelength and dual-wavelength laser output of which wavelengths can be switched is achieved, a side mode in a laser spectrum is prevented, and the wavelength stability is improved.