To design a new electrochemical horseradish peroxidase (HRP) biosensor with excellent analytical performance, black phosphorene (BP) nanosheets and single-walled carbon nanotubes (SWCNTs) nanocomposites were used as the modifier, with a carbon ionic liquid electrode (CILE) as the substrate electrode. The SWCNTs-BP nanocomposite was synthesized by a simple in situ mixing procedure and modified on the CILE surface by the direct casting method. Then HRP was immobilized on the modified electrode with Nafion film. The electrocatalysis of this electrochemical HRP biosensor to various targets was further explored. Experimental results indicated that the direct electrochemistry of HRP was realized with a pair of symmetric and quasi-reversible redox peaks appeared, which was due to the presence of SWCNTs-BP on the surface of CILE, exhibiting synergistic effects with high electrical conductivity and good biocompatibility. Excellent electrocatalytic activity to trichloroacetic acid (TCA), sodium nitrite (NaNO2), and hydrogen peroxide (H2O2) were realized, with a wide linear range and a low detection limit. Different real samples, such as a medical facial peel solution, the soak water of pickled vegetables, and a 3% H2O2 disinfectant, were further analyzed, with satisfactory results, further proving the potential practical applications for the electrochemical biosensor.