For the first time it is demonstratedthat zeolitic imidazolate framework-8 electrospun nanofibers(ZIF-8 NF) could serve as electrochemiluminescence (ECL) accelerator for the facile detection of terbutaline residual. A novel ECL sensor for the determination of terbutaline was fabricated based on ZIF-8 NF. The ZIF-8 NF were successfully prepared according to electrospinning and in-situ growth method. First, chitosan was modified on the surface of the electrode, and then the ZIF-8 NF was modified onto the upper layer of the chitosan. Taking advantages of chitosan and ZIF-8 NF in conductivity and electrocatalysis, the modified electrode presentsobvious ECL phenomenon in 0.2M PBS solution (pH 10.0) containing 0.025M luminol. After the addition of terbutaline, ECL intensity decreased significantly, and the decreasing value showed a linear relationship with the logarithm of terbutaline concentration. The linear range was from 2.0 × 10-10 to 2.0 × 10-5M, and the detection limit was 1.41 × 10-11M (3σ/m). The method had high sensitivity, good stability, and good applicability toactual pork samples.