Petroleum is an important industrial raw material that enters the soil in large quantities due to its production and extraction, causing toxic effects on soil organisms. To evaluate the toxicity of petroleum-contaminated soil, the study was conducted to qualitatively and quantitatively investigate the ecotoxicity of petroleum-contaminated loessal soil with different levels of petroleum. Using earthworms and wheat as indicator organisms by microcosm toxicity test. The earthworm test showed that the body weight of earthworms decreased by more than 20% with the addition of 800-3,000 mg/kg TPHs and by more than 50% with the addition of 13000 mg/kg or more TPHs. The EC50 values at 7 and 14 d were 21,130 and 25,314.5 mg/kg, respectively. The number of sprouts, shoot length and root length of wheat were inhibited in the soil with petroleum, and the more severe the petroleum contamination, the stronger the inhibition. The seedling elongation index was better than the root elongation index. The experimental results showed that earthworms had the lowest EC50 values for body weight inhibition at 7 days and the lowest IC50 values for mean shoot length at 7 days in wheat, which can be used for toxicity prediction and early diagnosis of petroleum-contaminated soil.