Direct synthesis of N 2 -substituted triazole and triazine derivatives has been a challenge in N-heterocyclic chemistry. Under copper(II) catalysis ketene N,S-acetals, that is, alkylthio-substituted enaminones, efficiently reacted with aryldiazonium salts to allow the regioselective generation of functionally diverse N 2 -substituted 1,2,3-triazoles and 2,3dihydro-1,2,4-triazines. The oxidant and base-dependent reaction yielded the fiveand six-membered N-heterocyclic products, respectively. The synthetic protocol features broad substrate scopes and good functional group tolerance under mild conditions. The mechanistic studies have revealed that the reaction proceeds via alkenyl azo/imino hydrazone intermediates.N -Heterocyclic compounds have been demonstrated to have versatile applications in pharmaceuticals, agrochemicals, functional materials, and coordination chemistry, 1 among which 1,2,3-triazole and 1,2,4-triazine derivatives have shown diverse anticancer, antibacterial, antiepileptic, and antiviral activities (Scheme 1). 2 Due to their potential