The invention relates to an imidacloprid complex pesticide for controlling the pest of willow twig gall midge. Active components in each 100 parts of the imidacloprid complex pesticide comprise, by weight, 9 to 11 of imidacloprid, 7 to 9 of angled bittersweet, 4 to 6 of lilac daphne flower bud, 4 to 6 of cyrtomium rhizome, 4 to 6 of neem fruit, 4 to 6 of euphorbia root, 4 to 6 of lightyellow sophora root, 4 to 6 of garlic, 4 to 6 of coptis, 4 to 6 of daturae flower, 2 to 3 of betel nut, 2 to 3 of common cnidium fruit, 2 to 3 of broom cypress fruit, 2 to 3 of Chinese honey locust leaves, 2 to 3 of ailanthus leaves, 2 to 3 of pine needle, 2 to 3 of stemona root and 2 to 3 of common threewingnut root. Each of the above-mentioned Chinese herbal medicines is extracted by using water or an organic solvent, and all the obtained extract products are used as raw materials for the pesticide. Production cost for the imidacloprid complex pesticide provided in the invention is low, and the raw materials are widely available; the pesticide has the characteristics of high efficiency, low toxicity, high security and environmental protection, enables resistance not to be generated and has special efficacy on controlling the pest of willow twig gall midge.