Designer drugs of the methylenedioxyphenylalkylamine type are increasingly abused. Studies on their metabolism in humans are necessary to develop a reliable gas chromatography--mass spectrometry (GC-MS) screening procedure. Such a method must allow their detection in urine for drug testing in clinical and forensic toxicology. Studies on racemic methylenedioxyamphetamine (MDA), methylenedioxymetamphetamine (MDMA), methylenedioxyethylamphetamine (MDE), benzodioxazolylbutanamine (BDB), and N-methylbenzodioxazolylbutanamine (MBDB) are presented. The metabolites were identified by GC-MS after enzymatic hydrolysis, isolation (pH 4.5 and 8-9), and derivatization (acetylation followed by methylation). The drugs undergo two overlapping metabolic pathways: O-dealkylation of the methylenedioxy group to dihydroxy derivatives followed by methylation of one of the hydroxy groups and successive degradation of the side chain to N-dealkyl and deaminooxo metabolites. MDA, MDMA, and MDE are subsequently metabolized to glycine conjugates of the corresponding 3,4-disubstituted benzoic acids. The hydroxy metabolites are excreted in a conjugated form. Based on these results, a GC-MS procedure was developed for simultaneous screening and identification of these designer drugs and/or their metabolites in urine after acid hydrolysis, isolation at pH 8-9, and acetylation. With use of mass chromatography with the most characteristic fragment ions m/z 58, 72, 86, 150, 162, 164, 176, and 178, the presence of the designer drugs was indicated and the peak underlying spectra could be identified by computerized comparison with reference spectra recorded during the presented studies. The procedure was suitable to detect an abuse of or an intoxication with the studied designer drugs (detection limit 5-50 ng/ml).