We reported on the generation of the dual-wavelength rectangular pulse in an erbium-doped fiber laser (EDFL) with a topological insulator saturable absorber. The rectangular pulse could be stably initiated with pulse width from 13.62 to 25.16 ns and fundamental repetition rate of 3.54 MHz by properl