A competitive immunoassay for clenbuterol (CLB) based on capillary electrophoresis with chemiluminescence (CL) detection was established. The method was based on the competitive reaction of horseradish peroxidase (HRP)-labeled CLB (CLB-HRP) and free CLB with anti-CLB antiserum. The factors affecting the electrophoresis and CL detection were systematically investigated with HRP as a model sample. Under the optimal conditions, the tracer CLB-HRP and the immunoassay complex were separated, and the linear range and the detection limit (S/N=3) for CLB were 5.0-40nmoll(-1) and 1.2nmoll(-1), respectively. The proposed method has been applied satisfactorily in the analysis of urine sample.