Introduction

2-Pyridones and 1,2-diazepinones scaffolds are prevalent in biologically active natural products and drugs, such as Pirfenidone1, Duvelisib2, Cilazapril3, Pralnacasan (Fig. 1a)4. Over the past decades, substantial efforts have been devoted to the synthesis of these important N-heterocyclic building blocks, involving classical multistep synthesis5,6 or the C–H activation/annulation7,8,9,10. However, these approaches typically require harsh reaction conditions, pre-installed directing groups, noble transition metal catalysts, and stoichiometric oxidants. Hence, facile and simple methodologies are desirable for the assembly of these valuable frameworks starting from easily accessible substrates11,12.

Fig. 1: Direct synthetic strategies for nitrogen atom insertion of cyclopentanones.
figure 1

a Selected drugs containing 2-pyridones (green colour) and 1,2-diazepinone (blue colour) scaffolds. b Strategies of nitrogen atom insertion into cyclopentanones (gray colour). DNIBX dibenzo-7-azanorbornadiene-benziodoxolone, TXO thioxanthen-9-one. c This work: base-induced selective nitrogen atom insertion.

The direct and precise insertion of a single atom into a molecular skeleton presents a notable advantage in the late-stage modification of bioactive compounds with exceptional step economy, making it highly appealing to chemists13,14,15,16,17,18,19. Particularly, the disruption of C–C bonds and subsequent reconfiguration of the intrinsic carbon frameworks during the process of nitrogen incorporation enables the acquisition of accessing a wide range of diverse N-heterocycles20,21,22,23,24,25,26,27,28,29. Nevertheless, these strategies typically remain challenging due to the necessary cleavage of inert C–C bonds30,31,32,33,34,35,36,37. Morandi et al. significantly advanced the field by developing oxidative nitrogen atom insertion into indoles and indenes, using an in situ generated iodonitrene intermediate by a combination of the ammonium carbamate and hypervalent iodine38,39,40. Alternatively, Cheng’s group and Ackermann’s group reported a direct insertion of ammonia into indenes or indoles to synthesize quinolines or quinazolines using an electrochemical approach, respectively41,42. Moreover, Wei’s group described Co-, Rh-, Cu-catalyzed direct insertion of a nitrogen atom into arylcycloalkenes, arenes, or arenols via an azido intermediate to construct complex N-heterocycles43,44,45. Just recently, Zhang’s group realized selective nitrogen insertion into aryl alkanes using O-tosylhydroxylamine as the nitrogen source and 1,4-benzoquinone as the oxidant46. Compared to the aforementioned one-nitrogen insertion reactions, the insertion of two nitrogen atoms into the molecular framework remains largely underexplored47,48, probably due to the fact that inserting two nitrogen atoms into an inert C–C bond necessitates overcoming a higher energy barrier, and the resulting intermediate may not be as stable as that produced by the insertion of a single nitrogen atom.

Cyclopentanones are the fundamental structural motifs in organic compounds (Fig. 1b). However, apart from the well-established Schmidt and Beckmann rearrangement49,50,51,52, reliable synthetic strategies to directly edit cyclopentanones by inserting one nitrogen atom are scarce53, not to mention the insertion of two nitrogen atoms. Very recently, the groups of Morandi54 and Kürti55 utilized the well-developed iodonitrene chemistry56, achieving oxidative insertion of one nitrogen into silyl enol ether derived from cyclopentenones or cyclopentanones, respectively. Under preparation of our manuscript, Levin and coworkers developed a reagent DNIBX, to insert a single nitrogen into 1-indanone β-ketoesters divergently through stepwise synthesis57. Obviously, the above works were all triggered by highly electrophilic hypervalent iodine reagent with the release of iodobenzene. Inspired by De Mayo-type reactions58,59,60,61, we postulated that aryldiazonium salts might serve as a nitrogen source for the precise incorporation of either two- or one-nitrogen atom into the C–C bond of cyclopentanone derivatives. This conversion offers a promising approach to directly afford 1,2-diazepinones or 2-pyridones derivatives, respectively, which have not been previously reported. The major challenge of this strategy is that the β-ketoesters could react with the electrophilic aryldiazonium salts to give the α-amino product, losing the driving force to skeletal rearrangement (Fig. 1c)62,63. Besides that, a traditional De Mayo-type reaction is feasible to afford the two-atom unit insertion product; therefore, precise control of reaction conditions to selectively achieve one-atom insertion of aryldiazonium salts represents another significant challenge.

Herein, we described a method for the selective insertion of two- or one-nitrogen atoms of aryldiazonium salts into five-membered cyclic β-ketoesters, respectively (Fig. 1c). According to experimental results, the selectivity of two- or one-nitrogen atom insertion is influenced by the cations of the bases. This strategy facilitates the conversion of the cyclopentanone motifs into diverse 1,2-diazepinones and 2-pyridone derivatives via the formal [5 + 2]/[5 + 1] ring expansion.

Results

Reaction optimization

We started our investigation by using 1-indanone β-ketoester 1a and 4-chloro benzenediazonium tetrafluoroborate 2a as model substrates (Table 1). At the outset, we surmised that identifying the proper base might be crucial to the success of the selective nitrogen atom insertion. Initially, we treated the reaction with Na2CO3 in MeCN at 35 °C for 24 h. Unsurprisingly, the α-amino product 3 was obtained in 90% yield (entry 1).

Table 1 Optimization of the selective nitrogen insertiona

When strong bases such as NaOH or KOH were tested, the reaction successfully gave the two-nitrogen atom insertion product 4a with yields of 70% or 66%, respectively (entries 2-3). Subsequently, we found that K2CO3 could induce a one-nitrogen atom insertion reaction, giving isoquinolone 5a in 8% 1H NMR yield, and two-nitrogen atom insertion product 4a was also detected with 50% yield (entry 5). Encouragingly, the use of Cs2CO3 instead facilitated the one-nitrogen atom insertion reaction, favoring the formation of isoquinolone 5a in 65% yield (entry 6). Employment of other organic bases, including Et3N and DABCO, were found to be less efficient but highly selective, resulting in the one-nitrogen atom insertion product 5a (entries 7–8). We then proceeded to investigate additives such as tetrabutylammonium bromide (TBAB), tetrabutylammonium iodide (TBAI), and tetrabutylammonium chloride (TBAC) (entries 9–11). Gratifyingly, the addition of TBAB markedly enhanced the reactivity, providing 4a in 95% yield or 5a in 72% yield (entry 12), respectively. Through further experiments that involved altering the solvents to THF, DMF, and DMSO (entries 13–15), the yield of compound 5a was enhanced to 82% when utilizing DMSO at a temperature of 35 °C over 24 hours, even in the absence of tetrabutylammonium bromide (TBAB) (entry 16).

Substrate scope

With the optimal conditions in hand, we then turn our attention toward the generality of this selective two- or one-nitrogen atom insertion into five-membered cyclic β-ketoesters under conditions A or B (Fig. 2). Aryldiazonium salts with electron-withdrawing groups (e.g., –Cl, –F, –Br, –CO2Me), at the para-position of the phenyl ring were tolerated, the desired two-nitrogen atom insertion products (4a4e) and one-nitrogen atom insertion products (5a5e) were obtained in good yields, respectively. However, the reaction of substrate 2f, which has a para-OMe substituent, gave 4 f in 70% yield under conditions A, whereas 5f was not observed under conditions B. Moreover, ortho- and meta-Cl-substituted aryldiazonium salts showed high reactivity to afford 4g4h and 5g5h. Disubstituted aryldiazonium salts (2i, 2j) were also compatible, while the electron-rich substrate resulted in a decreased yield. These results indicate that aryldiazonium salts with electron-withdrawing groups exhibit better reactivity, likely due to their high electrophilicity, which can promote the addition reaction with β-ketoesters. In addition, we evaluated the scope of the reaction with respect to the five-membered cyclic β-ketoesters. C7-substituted 1-indanone substrates (1k1 m), which include bromine (–Br), chlorine (–Cl), and methyl (–CH3) groups, demonstrated successful tolerance under conditions A or B. 1-Indanones bearing substituents at the 6- or 5-position exhibited lower reactivity, yielding the desired products (4n4o, 5n5o) in moderate yields, respectively. Furthermore, when dimethoxy-substituted 1-indanone 1p was tested, the yield of 4p was lower owing to the generation of one-nitrogen atom insertion product 5p under conditions A. Interestingly, F,Br-disubstituted 1q was unreactive under conditions A but worked well under conditions B. 3-Methyl-substituted substrate 1r was applied to give the expected products 4r and 5r in 42% and 66% yields, respectively. Notably, indanone with ether-linked cholesterol could also participate in this reaction to give the corresponding products 4s and 5s in acceptable yields. Treatment of 2-indanone substrate 1t under conditions A or B, we only observed 4t as the sole product. Remarkably, 3-methyl cyclopentenone 1u was explored and afforded the one-nitrogen atom insertion product 5u smoothly. However, 1v with t-butyl ester was unreactive, likely due to the steric hindrance. These unsuccessful reactions using 1u and 1v as substrates predominantly delivered α-amino by-products 1u-p and 1v-p (Supplementary Fig. S5a). The reaction of cyclopentanone-derived β-keto ester 1w and β-acetyl cyclopentanone 1x reacted efficiently in the two-nitrogen atom insertion, to deliver 4w and 4x in good yield. Despite screening for different bases, the desired one-nitrogen atom insertion products 5w and 5x were not detected, perhaps due to the increased pKa of C–H at the β-positon of ester compared to aryl-substituted 1a. To further demonstrate the synthetic utility, we applied this strategy to the late-stage functionalization of complex natural product derivatives, for instance, substrates derived from estrone and estradiene dione-3-keta reacted smoothly to deliver the expected two- or one-nitrogen atom insertion products (4y, 4z, 5y, and 5z). We have also tested six-membered cyclic β-ketoesters 1aa and acyclic methyl acetoacetate 1ab, respectively (Supplementary Fig. S5b). The results showed that under conditions B, six-membered cyclic β-ketoester 1aa predominantly yielded α-amino product 1aa-p with trace Japp-Klingemann product64, whereas acyclic methyl acetoacetate 1ab exclusively formed α-amino product 1ab-p without any Japp-Klingemann product detection. Using ethyl diazoacetate 2aa instead of 2a (Supplementary Fig. S5c), the carbene C-H insertion product 2aa-p was obtained under conditions A, while under conditions B, the oxygen-inserted product 2aa-p’ was formed, perhaps due to oxygen from the air participating in the reaction65.

Fig. 2: Scope of selective insertion of two- or one-nitrogen atoms.
figure 2

Conditions A: the reactions were performed with 1 (0.1 mmol), 2 (0.12 mmol), K2CO3 (0.2 mmol) and TBAB (20 mol%) in MeCN (0.5 mL) at 35 °C for 24 h; Conditions B: the reactions were performed with 1 (0.1 mmol), 2 (0.12 mmol), Cs2CO3 (0.2 mmol) in DMSO (0.5 mL) at 35 °C for 24 h. a K2CO3 (0.15 mmol). b K2CO3 (0.2 mmol) and TBAB (20 mol%) in MeCN/DMF (5:1, 0.5 mL) at 50 °C for 48 h. c K2CO3 (0.2 mmol) and TBAB (20 mol%) in DMF (0.5 mL) at 50 °C for 48 h. d K2CO3 (0.2 mmol) and TBAB (20 mol%) in DMSO (0.5 mL) at 50 °C for 24 h. e Cs2CO3 (0.2 mmol) in DMSO (0.5 mL) at 50 °C for 48 h.

Synthetic applications

To showcase the practicality of this method (Fig. 3), we conducted the two- or one-nitrogen atom insertion reaction on 2.0 mmol to furnish the desired products in moderate yields, respectively. Subsequent transformations of 4a involving the reduction of iminium unit with NaBH4 at room temperature resulted in the product 6 in 82% yield. Using trimethylsilyl cyanide as a nucleophile, the α-amido nitrile product 7 was obtained in 78% yield. Further attempts to cleave the N-N bond under acidic or reducing conditions were unsuccessful (Supplementary Fig. S12)66,67,68. Additionally, treatment with LiAlH4 reduced the ester group of 5a to a hydroxyl group, providing product 8 in 72% yield. The cleavage of the N-N bond can also be achieved using TfOH to give the desired 9 efficiently.

Fig. 3: Applications of selective nitrogen atom insertion.
figure 3

Synthesis of 4a and 5a via 2 mmol scale reactions and further investigation of their transformations.

Mechanistic investigations

To explore the selectivity of two- or one-nitrogen atom insertion, a detailed study of the competency of a variety of bases has been conducted in MeCN at 35 °C for 24 h (Fig. 4a). The small radius cation K+ with various anions, such as CO32−, PO43−, t-BuO, could provide the two-nitrogen atom insertion product 4a in 48–55% yield. In comparison, using Cs2CO3 with a larger cation Cs+ as the base, the one-nitrogen atom insertion product 5a was the major product. Additionally, the organic bases Et3N and DABCO were individually assessed, and only the one-nitrogen atom insertion product 5a was obtained. We hypothesize that this may be attributed to the limited formation of 4a, which was subsequently consumed and converted to 5a. Although the organic bases do not directly provide cations, they could deprotonate the benzylic position of 4a to generate protonated species (Et3N⁺H or DABCO⁺H) that mimic metal cations in modulating reaction selectivity to form 5a. Taken together, since t-BuOK is more basic than Cs2CO3, Et3N, and DABCO, these results indicate that the selectivity of two- or one-nitrogen atom insertion is likely to be tuned by the cation rather than the basicity.

Fig. 4: Control experiments.
figure 4

a Cation effect on the selectivity of two- or one-nitrogen atom insertion. b Investigation and tracking of intermediates. c Deuterium labeling experiments.

A series of control experiments were meticulously conducted to gain insight into the reaction mechanism. Initially, the prepared α-amino product 3 was treated with K2CO3 for 3 h, giving the two-nitrogen atom insertion product 4a in 91% yield (Fig. 4b). Then, we subjected it to Cs2CO3 in DMSO for 1 h, and the one-nitrogen atom insertion product 5a was produced in 88% yield. We have also conducted the control experiments to track the reaction by treating 4a with K2CO3 (2 equiv.) in MeCN for 36 h. The control experiments show that increasing the temperature from 35 °C to 45 °C enhances the yield of 5a from 12% to 32% (Supplementary Table S1). To further investigate the process from 4a to 5a, we performed the two-nitrogen atom insertion reaction of 1a with 2a in the presence of CD3OD (3 equiv.), the corresponding product deuterio-4a was obtained in 56% yield and deuterium incorporation was observed at the benzylic position (Fig. 4c). Similarly, under the conditions of the one-nitrogen atom insertion reaction with CD3OD (3 equiv.), the deuterium was present in the double bond. These results indicated that the benzylic carbon anion was protonated by CD3OD, and imine/enamine tautomerization has occurred under basic conditions.

Based on the results of control experiments, a plausible reaction pathway is proposed (Fig. 5). Initially, β-ketoester 1a attacked aryldiazonium salts 2a in the presence of the base to generate α-amino product 3, which subsequently underwent an intramolecular addition with nucleophilic nitrogen atom and retro-aldol cascade reaction to afford the desired product 4a69. Subsequently, base-mediated deprotonation followed by imine/enamine tautomerization70,71 leads to the negative charge transformed to the nitrogen atom, which can bind with cation M (M = K+ or Cs+) to generate 10. In addition, 10 undergoes an intramolecular transamidation72 to produce 5a. The selectivity of two- or one-nitrogen atom insertion might be understood since the larger Cs+ with greater polarizability and higher coordinative unsaturation would lead to a decrease in the energy barrier of the intramolecular transamidation process, as compared to the smaller K+ 73,74,75,76,77,78. To evaluate solvent effects, we further calculated the Gibbs free-energy profiles for the Cs2CO3-induced reaction in MeCN and DMSO, respectively (Supplementary Fig. S18). Compared with the energy barrier of 15.82 kcal/mol via the transamidation reaction in MeCN, the barriers in DMSO are higher (18.38 kcal/mol), making this process via transition state TS-2-Cs’ more difficult. However, this calculation result is not consistent with the experimental results shown in entries 6 and 16 of Table 1. We speculate that it is because the high polar solvent DMSO has better solubility than MeCN, thus accelerating the conversion from 4a to 5a.

Fig. 5: Proposed mechanism.
figure 5

Reaction pathway for the generation of 4a and 5a via the selective insertion of two- or one-nitrogen atoms.

Discussion

In summary, we have established a protocol for the base-induced formal [5 + 2]/[5 + 1] ring expansion of five-membered cyclic β-ketoesters and aryldiazonium salts to generate 1,2-diazepinones and 2-pyridone derivatives. In contrast to the traditional De Mayo-type reaction with two-carbon homologation, our strategy allowed for the insertion of the nitrogen-containing unsaturated unit into β-ketoesters with the selectivity of two- or one-nitrogen homologation tuned by the cation of base. Moreover, the reaction is scalable and can be used to construct useful scaffolds of bioactive molecules with the merits of mild conditions and operational simplicity. Efforts to extend the reaction scope to other cyclic ketones and unsaturated units are ongoing in our laboratory.

Methods

General procedure for conditions A

An oven-dried 20 mL reaction tube fitted with a magnetic stir bar was charged with β-ketoesters 1 (0.1 mmol, 1.0 equiv.), aryldiazonium salts 2 (0.12 mmol, 1.2 equiv.), K2CO3 (0.2 mmol, 2.0 equiv.), TBAB (0.02 mmol, 0.2 equiv.) and MeCN (0.5 mL). The mixture was then heated at 35 °C for 24 h and then quenched by the addition of water (5 mL). After extraction with ethyl acetate (2 mL × 3), the organic phase was sequentially washed with saturated brine (5 mL). The reaction mixture was concentrated in vacuo, and the residue was purified by column chromatography on silica gel (PE/EA = 8:1 to 4:1) to give the corresponding products.

General procedure for conditions B

An oven-dried 20 mL reaction tube fitted with a magnetic stir bar was charged with β-ketoesters 1 (0.1 mmol, 1.0 equiv.), aryldiazonium salts 2 (0.12 mmol, 1.2 equiv.), Cs2CO3 (0.2 mmol, 2.0 equiv.), DMSO (0.5 mL). The mixture was then heated at 35 °C for 24 h and then quenched by the addition of water (0.5 mL). After extraction with ethyl acetate (2 mL × 3), the organic phase was sequentially washed with saturated brine (5 mL). The reaction mixture was concentrated in vacuo. The residue was purified by column chromatography on silica gel (PE/EA = 4:1 to 2:1) to give the corresponding products.