The synthesis of new 5H-pyridobenzazepine and 5H-dipyridoazepine compounds using as key step a palladium-catalyzed amination-cyclization reaction is reported. By choosing an appropriate combination of ligands and reactants under standardized reaction conditions, N- and S-tricyclic products can be prepared in one step from the appropriate stilbenes.