Abstract Condensation of indolin-2-one (oxindole) lactim ether with malononitrile leads to 2- dicyanomethylidene-2, 3-dihydroindole, the reaction of which with dimethylformamide diethyl acetal (or with triethyl orthoformate) and the subsequent cyclization afford 4- cyanopyrido [4, 3-b] indoles (γ-carbolines). 3-Amino-4-cyanopyrido [4, 3-b] indole was used in the synthesis of substituted pyrimido [4, 5-c]-γ-carbolines.