The 9H-pyrido[2,3- b]indoles were produced by dissolving 1-bromo-2-(2,2-dibromovinyl)benzene or its derivatives, ammonia and a, -unsaturated aldehydes in an organic solvent, and then adding a catalyst, transition metal salts and additives, and then reacting at 60-100 C in the presence of air. The synthesis process of the present invention is a one-pot multi-component tandem reaction, which is simple and easy to operate, and avoids the waste of resources and environmental pollution caused by the use of a variety of reagents and the purification of intermediates in each step of the reaction, and provides an economical and practical method for the synthesis of 9H-pyrido[2,3-b]indole compounds in a green and environmentally friendly way.