The invention relates to a synthesis method for (6R, 12aR)-6-(1, 3-benzodioxane heterocyclas-5-base)-2-methyl-2, 3, 6, 7, 12, -12a-hexahydro pyrazinyl [1', 2':1, 6] pyridyl [3, 4-b] indole-1, 4-diketone in the technical field of the pharmaceutical engineering. With the D-methyl tryptophan and piperonal as raw materials, the cis-1, 3-disubstituted carboline intermediates are prepared and generated through the Pictet-Spengler cyclization and then the products called tadalafil are obtained through the acylation ammoniation of the 3-secondary amino group and the final MTX substitution and condensation close-loop. By adopting the acidic condition protic solvents in the invention, the trans-1, 3-disubstituted carboline intermediates generated through the Pictet-Spengler cyclization, which is a key step in the existing process, are converted into those with a cis-configuration, thus greatly enhancing the stereospecific configuration yield of the carboline intermediates so as to enhace the overal yield of the tadalafil with reaching the goal of optimizing and improving the synthesis process.