The invention discloses an electrochemiluminescence immunoassay sensor for detecting a tumor marker. A preparation method of the sensor comprises the following steps: synthesizing polyaniline on conducting glass by an electropolymerization method, preparing g-C3N4, a silver-gold core shell nanosphere or copper oxide or manganese dioxide by the existing method, connecting the g-C3N4 on the polyaniline by 1-(3-dimethylamino propyl)-3-ethylcarbodiimide hydrochloride and N-hydroxysuccinimide mixed solution used as coupling agent, modifying the primary antibody on the prepared conducting glass, coating the surface of zinc oxide by the silver-gold core shell nanosphere, modifying second antibody on the silver-gold core shell nanosphere coating the surface of the zinc oxide, and detecting by electrochemiluminescence. The sensor has strong specificity, high sensitivity, simplicity in operation, wide linearity range and low detection limit.