The method for the analysis of anileridine, levorphanol, nalbuphine and ethamivan in urine by means of GC/NPD and GC/MSD is described. TFAA and MSTFA-MBTFA have been used in this procedure for TFA and TMS derivatization. The parent forms and the metabolites of the four drugs can be found by GC/NPD screening and GC/MSD confirmation. The method is reliable, fast and sensitive.