A complete physicochemical characterisation of MDMA and its synthetic precursors MDA, 3,4-methylenedioxybenzaldehyde (piperonal) and 3,4-methylenedioxy--methyl--nitrostyrene was carried out through voltammetric assays and Raman spectroscopy combined with theoretical (DFT) calculations. The former provided important analytical redox data, concluding that the oxidative mechanism of the N-demethylation of MDMA involves the removal of an electron from the amino-nitrogen atom, leading to the formation of a primary amine and an aldehyde. The vibrational spectroscopic experiments enable to afford a rapid and reliable detection of this type of compounds, since they yield characteristic spectral patterns that lead to an unequivocal identification.Moreover, the rational synthesis of the drug of abuse 3,4-methylenedioxymethamphetamine (MDMA or "ecstasy") from one of its most relevant precursors 3,4-methylene-dioxyamphetamine (MDA), is reported. In addition, several approaches for the N-methylation of MDA, a limiting synthetic step, were attempted and the overall yields compared.