The invention discloses a medicine for treating advanced non-small-cell lung cancer and a preparation method of the medicine. The medicine for treating advanced non-small-cell lung cancer is prepared from raw materials in parts by weight as follows: 20-40 parts of hedyotis diffusa, 20-40 parts of scutellaria barbata, 20-40 parts of herba houttuyniae, 10-20 parts of dried tangerine peel, 20-30 parts of fructus trichosanthis, 10-20 parts of semen coicis, 20-30 parts of semen lepidii, 10-20 parts of radix scutellariae, 10-20 parts of rhizoma anemarrhenae, 10-20 parts of semen armeniacae amarae, 10-20 parts of bulbus fritillaria thunbergii, 20-30 parts of carapax trionycis, 10-20 parts of prunella vulgaris, 20-40 parts of radix astragali, 10-20 parts of codonopsis pilosula, 10-20 parts of rhizoma phragmitis, 10-20 parts of semen persicae, 10-15 parts of fructus perillae and 5-10 parts of radix glycyrrhizae preparata. The medicine has the effects of clearing heat, removing toxins, reducing phlegm, removing blood stasis, tonifying qi and nourishing yin and has functions of resisting tumor, relieving cough, eliminating phlegm and enhancing body immunity. The medicine capsules can relieve symptoms of patients, have exact curative effect and can prolong lifetime of the patients and improve the life quality.