We proposed and demonstrated pulsed fiber lasers Q-switched and mode-locked by using a large-angle tilted fiber grating, for the first time to our best knowledge. Owing to the unique polarization properties of the large-angle tilted fiber grating (LA-TFG), i.e. polarization-dependent loss and polarization-mode splitting, switchable dual-wavelength Q-switched and mode-locked pulses have been achieved with short and long cavities, respectively. For the mode-locking case, the laser was under the operation of nanosecond rectangular pulses, due to the peak-power clamping effect. With the increasing pump power, the durations of both single-and dual-wavelength rectangular pulses increase. It was also found that each filtered wavelength of the dual-wavelength rectangular pulse corresponds to an individual nanosecond rectangular pulse by employing a tunable bandpass filter.