As one of the interesting signaling mechanisms, the in situ growth reaction on a photoelectrode has proven its powerful potential in photoelectrochemical (PEC) bioanalysis. However, the specific interaction between the signaling species with the photoactive materials limits the general application of the signal mechanism. Herein, on the basis of an in situ growth reaction on a photoelectrode of single-atom-based photoactive material, a general PEC immunoassay was developed in a split-type mode consisting of the immunoreaction and PEC detection procedure. Specifically, a single-atom photoactive material that incorporates Fe atoms into layered Bi 4 O 5 I 2 (Bi 4 O 5 I 2 −Fe SAs) was used as a photoelectrode for PEC detection. The sandwich immunoreaction was performed in a well of a 96-well plate using Ag nanoparticles (Ag NPs) as signal tracers. In the PEC detection procedure, the Ag + converted from Ag NPs were transferred onto the surface of the Bi 4 O 5 I 2 − Fe SAs photoelectrode and thereafter AgI was generated on the Bi 4 O 5 I 2 −Fe SAs in situ to form a heterojunction through the reaction of Ag + with Bi 4 O 5 I 2 −Fe SAs. The formation of heterojunction greatly promoted the electro-hole separation, boosting the photocurrent response. Exemplified by myoglobin (Myo) as the analyte, the immunosensor achieved a wide linear range from 1.0 × 10 −11 to 5.0 × 10 −8 g mL −1 with a detection limit of 3.5 × 10 −12 g mL −1 . This strategy provides a general PEC immunoassay for disease-related proteins, as well as extends the application scope of in situ growth reaction in PEC analysis.