A biofunctional immunosensor combining photoelectrochemical (PEC) and electrochemical (EC) was proposed for the quantitative detection of the liver cancer marker alpha-fetoprotein (AFP) in human blood. BiVO4/BiOI-MWCNTs photoactive materials were first prepared on conductive glass FTO, and the photoelectrode was functionalized by chitosan and glutaraldehyde. Then, the AFP capture antibody (Ab1) was successfully modified on the photoelectrode, and the label-free rapid detection of AFP antigen was achieved by PEC. In addition, Au@PdPt nanospheres were also used as a marker for binding to AFP detection antibody (Ab2). Due to the excellent catalytic properties of Au@PdPt in EC reaction, a signal increase in the EC response can be achieved when Ab2 binds to the AFP antigen, which ensures high sensitivity for the detection of AFP. The detection limits of PEC and EC are 0.050 pg/mL and 0.014 pg/mL, respectively. The sensor also possesses good specificity, stability and reproducibility, shows excellent performance in the detection of clinical samples and has good clinical applicability.