We reported a wavelength-flexible all-polarization-maintaining self-sweeping fiber laser based on the intracavity loss tuning brought by the bent optical fiber. The bidirectional cavity structure achieved the self-sweeping effect due to the appearanc