CE / tris(2,2-bipyridyl) ruthenium(II) (Ru(bpy)(3) (2+)) electrochemiluminescence (ECL), CE-ECL, with an ionic liquid (IL) detection system was established for the determination of bioactive constituents in Chinese traditional medicine opium poppy which contain large amounts of coexistent substances. A minimal sample pretreatment which involves a one-step extraction approach avoids both sample loss and environmental pollution. As the nearby hydroxyl groups in some alkaloid such as morphine may react with borate to form complexes and IL, as a high-conductivity additive in running buffer, could cause an enhanced field-amplified effect of electrokinetic injection. Running buffer containing 25 mM borax-8 mM 1-ethyl-3-methylimidazolium tetrafluoroborate (EMImBF(4))IL (pH 9.18) was used which resulted in significant changes in separation selectivity and obvious enhancement in ECL intensities for those alkaloids with similar structures. Sensitive detection could be achieved when the distance between the Pt working electrode and the outlet of separation capillary was set at 150 microm and the stainless steel cannula was fixed approximately 1 cm away from the outlet of the capillary. Quantitative analysis of four alkaloids was achieved at a detection voltage of 1.2 V and a separation voltage of 15 kV in less than 7 min. Detection limits of thebaine, codeine, morphine, and narcotine were 2.5 x 10(-7), 2.5 x 10(-7), 1 x 10(-9) and 1 x 10(-6) M(S/N = 3), respectively. The method was successfully applied to determine the amounts of opium alkaloids in real poppy samples.