Black phosphorus (BP), a prosperous two-dimensional optoelectronic material, has been deeply developed for various optoelectronics applications. Here, we demonstrate a sub-hundred nanosecond passively Q-switched Er-doped all-fiber laser with BP as the saturable absorber (SA). The BP-SA is fabricated by a controllable optical deposition technique. To achieve the sub-hundred nanosecond Q-switching output, we deliberately enlarge the modulation depth of the BP-SA by suitably increasing the time and laser power of the optical deposition and shortening the laser cavity length with an integrated multifunctional component. A stable Q-switched pulse train was obtained with a pulse duration as narrow as 91 ns, and the Q-switched lasing characteristics based on the BP-SA have also been investigated and discussed. The experimental results indicate that the BP material can be employed as an effective SA for the nanosecond pulse generation.