A novel method of online microcolumn separation and preconcentration coupled to inductively coupled plasma atomic emission spectrometry (ICP-AES) with the use of acetylacetone-modified silica gel as packing material was developed for the determination of trace rare earth elements (REEs) in environmental and food samples. The main parameters affecting online separation/preconcentration, including pH, sample flow rate, sample volume, elution and interfering ions, have been investigated in detail. Under the optimized operating conditions, the adsorption capacity values for Sc, Y, La, Ce, Pr, Nd, Sm, Eu, Gd, Tb, Dy, Ho, Er, Tm, Yb and Lu were 25.65, 23.23, 24.01, 19.40, 22.89, 23.77, 24.40, 23.96, 25.58, 25.15, 24.86, 22.75, 16.05, 24.13, 26.51 and 27.93 mg g -1 , respectively. Detection limits (3σ) based on three times standard deviations of the blanks by 8 replicates were in the range from 48 pg mL -1 for Lu to 1003 pg mL -1 for Sm. With 90 s preconcentration time and 10 s elution time, the enrichment factor was 10 and the sample frequency was 28 h -1 . The precisions (RSDs) obtained by determination of a 250 ng mL -1 (n = 8) REEs standard solution were in the range from 1.7% for Y to 4.4% for Sm. The proposed method was successfully applied to the determination of trace REEs in pig liver, agaric and mushroom. To validate the proposed method, we analyzed three certified reference materials (GBW07401 soil, GBW07301a sediment, and GBW07605 tea leaves). The determined values were in a good agreement with the certified values. The method is rapid, selective, sensitive and applicable to the determination of trace REEs in biological and environmental samples with complicated matrix effects.