This compound can be obtained by two related ways: 1) The condensation of 2-methylindole (I) with 2-morpholinoethyl chloride (II) by means of KOH in hot DMSO gives 1-(2-morpholinoethyl)-2-methylindole (III), which is then submitted to a Friedel-Craft's reaction with 4-methoxybenzoyl chloride (IV) by means of AlCl3 in dichloromethane or ethylene dichloride. 2) The condensation of indole (I) with acyl chloride (IV) by means of methylmagnesium bromide in anhydrous ethyl ether gives 2-methyl-3-(4-methoxy benzoyl)indole (V), which is then condensed with morpholine (II) by means of K2CO3 in DMF.