The invention relates to a process for obtaining compounds derived from tetrahydro-&bgr;-carboline, specifically tadalafil and intermediate products from the synthesis, comprising the reaction between piperonal and an alkyl ester of D-tryptophan as a salt, and in the absence of any other component, followed by haloacetylation and a final cyclization with methylamine.本発明は、テトラヒドロ-β-カルボリンから誘導される化合物、具体的にはタダラフィル、及びその合成由来の中間生成物を得る方法であって、他のいかなる成分も非存在下で、ピペロナールと塩としてのD-トリプトファンアルキルエステルとの間の反応、その後のハロアセチル化、及び最後のメチルアミンとの環化を含む上記方法に関する。