Abstract

Polysubstituted pyrroles have been synthesized in good yields via a four-component one-pot reaction of 1,3-dicarbonyl compounds, amines, aldehydes, and nitroalkanes using natural hydroxyapatite (HAp) as an efficient green catalyst. This strategy provides advantages such as simple experimental and work-up procedures, mild conditions, high selectivity, low cost, high atom economy, and environmental friendliness; it uses a green commercial catalyst and does not require a solvent. The electrochemical behavior of S300 steel in 1 M hydrochloric acidic was studied in the presence of these heterocyclic compounds. The results showed good inhibition efficiency for steel in acidic media.

1. Introduction

Pyrrole derivatives are an important class of heterocyclic compounds found in a large variety of natural products and important biological molecules [1] and exhibit interesting bioactivity proprieties [2]. Therefore, many methods have been developed to synthesize pyrrole derivatives [35]. Among them, multicomponent reaction (MCR) coupling, a procedure allowing the synthesize of a target molecule from three or more starting materials, has emerged as a popular and core strategy to construct functionalized pyrrole derivatives, which have been extensively reviewed with different starting materials [6]. MCRs provide interesting advantages, including the synthesis of high functionalized molecules in one pot with good overall yields without the need for the isolation and purification of the intermediate product; it has high selectivity and operational simplicity and, hence, minimal waste, time, labor, and cost [7]. Thus, this straightforward approach could be an environmentally friendly and economical alternative to modern organic synthesis and combinatorial and medicinal chemistry [8]. Recently, a new four-component reaction employing 1,3-dicarbonyl compounds, amines, aldehydes, and nitroalkanes to synthesize tetra-substituted pyrroles derivatives has been performed using FeCl3 [9], iodine [10], NiCl2·6H2O [11], [HBim]BF4 [12], and silica tungsten acid (STA) [13]. However, these methods use toxic metals as homogeneous catalysts which are not recyclable, and although ionic liquids are considered as a mild and environmentally friendly solvent in modern organic chemistry [14], the presence of impurities can greatly affect their physicochemical properties [15], and their toxicities are not well known [16].

Nowadays, one of the main goals of modern organic synthetic chemistry is the search for environmentally friendly processes and methods. This new age of synthesis requires the development of clean and safe processes, less expensive resources, and lower energy requirements. In this context, heterogeneous catalysts are gaining popularity in green chemistry protocols. Only a few recent studies have reported using heterogeneous catalysts in the synthesis of pyrrole derivatives with an MCR approach [1719]. However, the catalysts were not readily available or contained expensive starting materials. To address this problem, the development of a green protocol using a commercially cheap heterogeneous catalyst for the synthesis of functionalized pyrroles is highly desired, especially if the catalyst can be recovered at the end of the reaction without trace amounts of metal contamination [20].

Corrosion is a costly problem for the industry field [21]. Therefore, many studies have been done to determine how to prevent metallic aggression against air and water pollution or how to remove rust or any undesirable deposits on the surface of metals caused by chemical or/and electrochemical reactions. One of the most attractive methods is the utilization of synthetic organic compounds as corrosion inhibitors [22]. Heterocyclic compounds containing donor atoms such as N, O, S, and P, as well as unsaturated bonds (electron pairs or/and π-electron), and polar functional groups (e.g., –OCH3, –CH3, –NH2, and –Cl) were identified as the most effective inhibitors and are widely reviewed in the literature [23]. They are adsorbed onto the metal surface and prevent metal dissolution in aggressive media [24]. Lately, we investigated the corrosion inhibition of S300 steel in 1 M HCl using a pyrrole derivative [25].

We have recently reported a simple, rapid, and efficient synthesis of β-ketoester using HAp (Ca5 (PO4)3OH) as a catalyst [26]. The catalyst used in this work is a bioceramic, which can be synthesized by various methods such as hydrothermal, sol-gel, precipitation, and emulsion [27]. Despite good thermal and chemical stability, bioactivity, adsorption capacity, macroligant behavior, and acid-base propriety [28], the potential of HAp applications in catalysis support in the synthesis of polyheterocyclic compounds has been less explored [29]. In our efforts for the development of ecocompatible procedures, we report here a convenient synthesis of polysubstituted pyrroles via a four-component condensation reaction catalyzed by natural HAp in mild conditions. The corrosion inhibition of different prepared compounds was also performed using the potentiodynamic polarization method.

2. Experimental Section

2.1. Materials

NMR studies were performed on a Bruker Avance 300 spectrometer in CDCl3; chemical shifts are given in ppm relative to external TMS. The reaction mixtures were analyzed on a Trace GC Shimadzu chromatograph equipped with an FID detector. GC parameters for capillary columns TG-5MS (30 m × 0.25 mm) are as follows: injector, 230°C; detector, 200°C; oven, 40°C for 2 min, followed by 40°C min−1 until 280°C for 12 min; column pressure, 42.9 kPa; gas flow, 20 mL min−1. The spectrum mass of the products was obtained by ionization on an ISQ LT single quadruple mass spectrometer in positive EI mode using a mass scan range of 50 to 400 da. Liquid chromatography was performed on silica gel (Merck 60, 220–440 mesh). All reagents and solvents used in the experiments were purchased from commercial sources and used without further purification (Aldrich, Acros).

2.2. General Procedure for the Synthesis of Pyrrole

To a stirred mixture of amine (2.5 mmol), aldehyde (2.5 mmol), 1,3-dicarbonyl (2.5 mmol), and nitroalkane (5 mmol), HAp (S/C = 60) was added as a catalyst. The reaction was carried out at 60°C for 24 h. After completion of the reaction, the resultant crude product was cooled to room temperature, then diluted with water (5 mL), and extracted with ethyl acetate (3 х 5 mL). The organic residue was dried over Na2SO4, and the solvent was removed under reduced pressure. The residue was purified by column chromatography over silica gel (Merck 60, 220–440 mesh) using a mixture of hexane/ethylacetate (9.5/0.5 : v/v) as an eluent to get the pyrrole desired.

2.3. Synthesis of 4-(Benzylamino)pent-3-en-2-one

By following our reported procedure [26], a mixture of 1.7 mmol of acetylacetone, 1.7 mmol of benzylamine, and 0.017 mmol of Ca5(PO4)3OH were stirred at room temperature for 10 min. After completion of the reaction, 10 mL of distilled water was added, and the product was extracted by ethyl acetate (3 × 25 ml). The organic layer was dried with Na2SO4, and the solvent was eliminated under vacuum. The desired product was obtained by silica gel column chromatography by using a mixture of hexane/ethylacetate (96/4: v/v) as an eluent.

2.4. Electrochemical Measurements

Electrochemical tests were performed using a potentiostat PGZ100 instrument piloted by VoltaMaster 4 software. The instrument was attached to a jacketed glass cell (20 ± 1°C) with a three-electrode configuration. A platinum sheet (2 cm2) was used as the auxiliary electrode, silver-silver chloride (Ag/AgCl) was selected as the reference electrode, and 0.76 cm2 of S300 steel was used as the working electrode with a chemical composition of Fe (98.55%), C (0.15%), Mn (1.25%), and Si (0.05%). Prior to each experiment, the working electrode was polished with various grades of sand paper, washed, and immersed in an acidic solution. The electrochemical measurements were carried out after 30 min of immersion time to establish the open circuit potential (OCP). The polarization curves were studied in the potential range of −0.8 V to −0.2 V at a scanning rate of up to 1 mV/sec.

The inhibition efficiency (η%) was calculated using the following relation:where icorr and are the corrosion current density without and with inhibitor.

3. Results and Discussion

3.1. The Four Synthesis Routes of the Pyrrole Derivatives

Initially, we were interested in the synthesis of a pyrrole moiety catalyzed by HAp by four methods (Scheme 1). For this reason, we examined the four-component reaction of acetylacetone (2.5 mmol), benzylamine (2.5 mmol), benzaldehyde (2.5 mmol), and nitromethane (5 mmol) (Method A). The three-component reaction involved 4-(benzylamino)pent-3-en-2-one (2.5 mmol), benzaldehyde (2.5 mmol), and nitromethane (5 mmol) (Method C) or β-nitrostyrene (2.5 mmol), acetylacetone (2.5 mmol), and benzylamine (2.5 mmol) (Method D). Method B used two compounds in the reaction: 4-(ben9zylamino)pent-3-en-2-one (2.5 mmol) and β-nitrostyrene (2.5 mmol). The yields of product 1a are given in Table 1.

We found that the one-pot synthesis (Method A) gave a better yield of the desired pyrrole 1a with a total conversion (Table 1, entry 1). Similar results for the synthesis of 1a were described with other catalysts [11, 19]. Method B (Table 1, entry 2) did not provide a good yield, and we noticed that nitrostyrene was less reactive in the process of the reaction. The same was observed for the three-component methods (Table 1, entries 3 and 4). Our attention was then turned to the four-component reactions described in Method A. We chose the reaction of acetylacetone (2.5 mmol), methyl benzylamine (2.5 mmol), benzaldehyde (2.5 mmol), and nitromethane (5 mmol) as the standard reaction (Scheme 2) to find the optimal conditions to improve the yield. For this purpose, various amounts of the catalyst and different solvents and temperatures were screened (Table 2).

3.2. Optimization of the Four-Component Reaction

The experiment performed without the catalyst in solvent-free condition at 60°C was less effective; only 20% of the product 1b was isolated (Table 2, entry 1). We then examined the effect of HAp loading in the solvent-free reaction. The results indicated that, for a molar ratio of 60, the reaction led to a good yield of 89% (Table 2, entry 3). The use of the catalyst is, therefore, crucial for the evolution of the reaction. However, we observed that an increase in the amount of the catalyst decreased the yield of the desired product (Table 2, entries 4 and 5).

We studied different solvents in our standard reaction using HAp (S/C = 60) as the catalyst at 60°C. The use of polar solvents, such as water and ethanol, gave good yields of the desired product (Table 2, entries 6 and 7), as opposed to acetonitrile, which only gave a yield of 6% (Table 2, entry 8). It can be explained by the protic character of water and ethanol which participates in the reaction medium by hydrogen bonding. In the case of toluene, only traces of the product were found under the reaction conditions (Table 2, entry 9). The best protocol for this reaction was solvent free (Table 2, entry 3) because it allows a direct interaction of all starting materials. We also studied the effect of temperature on the catalytic reaction. At room temperature (RT) and 40°C, only 21 and 24% of the products were isolated, respectively (Table 2, entries 10 and 11). However, the yield of the product decreased when the temperature of the reaction increased to 90°C and 120°C (Table 2, entries 12 and 13). The result shows that the best thermodynamic condition to perform the reaction was at a temperature of 60°C that afforded the highest yield towards the product 1b. To define a more efficient catalytic system for the synthesis of pyrrolic products, we have performed the reaction with other types of phosphate-based catalysts such as AlPO4 and fluoroapatite (FAP) (Table 2). We found that both catalysts afforded the same yield (Table 2, entries 14 and 15). However, the presence of natural HAp in the four-component reaction gave the best results due to a better interaction of hydroxyl groups from HAp catalyst with the starting materials.

3.3. Kinetic Study of the Four-Component Reaction

The evolution of the reaction through the time was studied under the optimized conditions (Figure 1). Every two hours, a sample is taken from the reaction medium and then extracted with ethyl acetate and analyzed by GC in order to determine the selectivity of the obtained products. Three main products were detected: two intermediate products—PI1: (4-phenylamino-pent-3-en-2-one) and PI2: nitrostyrene—and the corresponding pyrrole derivative (Scheme 3). They were isolated and confirmed by RMN study.

As illustrated in Figure 1, the evolution of the reaction towards the formation of the pyrrole derivative goes through intermediates (PI1 and PI2). According to the curve below, at t = 2 h, the pyrrole 1b is formed in a very small amount (10%), while the intermediates PI1 and PI2 are found as the main formed products in the reaction medium with 41% and 30%, respectively.

After 4 h, the reaction showed an increase in the selectivity towards the product 1b (49%), which resulted in the decrease in the amount of the PI1 and PI2 in the reaction medium. The reaction started to reach stabilization after 18 h, with a maximum isolated yield of 89%.

3.4. Multicomponent Synthesis of Pyrroles by Various Substrates

After determining the optimal reaction conditions, we extended the experimental protocol by studying the scope and limitations of this straightforward four-component reaction (Scheme 4), and the results are summarized in Table 3. We first ran the reaction with acetylacetone, benzaldehyde, and nitroethane with different aromatic and aliphatic amines. The 1-phenylethylamine resulted in an excellent yield (90%) of product 1d (Table 3, entry 2), and benzylamine generated the corresponding pyrrole 1e with a yield of 74% (Table 3, entry 3). Aniline and isopropylamine exhibited moderated yields of 48% and 44%, respectively (Table 3, entries 1 and 4). Thus, better yields were obtained with aliphatic amines bearing an aromatic radical rather than aromatic amines and simple aliphatic amines. Encouraged by these results, we expanded the four-component procedure by examining the effect of different aromatic aldehydes. The pyrrolic products prepared from p-chlorobenzaldehyde and p-methylbenzaldehyde were isolated with good yields of 67% and 77%, respectively (Table 3, entries 6 and 10). This observation showed that the yield was affected by weak electron-donating and strong electron-withdrawing substituents of aromatic aldehydes.

Furthermore, this four-component method is suitable for both nitromethane and nitroethane, giving the corresponding pyrrolic products similar yields. These results prove that this method is extendable to a variety of nitroalkane compounds. The structures of products 1e and 1h were successfully confirmed by single-crystal X-ray crystallographic analysis [25, 31].

We have also investigated the effect of another 1,3-dicarbonyl compound named ethylacetoacetate, on benzaldehyde, nitromethane, and diverse amines such as 1-phenylethanamine, benzylamine, aniline, and isopropylamine. The corresponding products were obtained in 43%, 41%, 30%, and 29% yields, respectively (Table 3, entries 17–21). Compared to acetoacetylacetone, this four-component coupling reaction was found to be less reactive with β-ketoester compounds. RMN and mass spectra of products 1k, 1m, and 1p can be found in supplementary data.

Based on the literature [9, 10], we have proposed a plausible mechanism for the one-pot reaction (Scheme 5). The intermediate products β-nitrostyrene and β-enamino ketone were both separated and isolated in the reaction process. This corroborates with the research of Grob and Camenisch that pyrroles can be obtained from a Michael reaction of β-enamino ketones or esters and nitroalkenes followed by cyclization [32].

The synthesis of fully functionalized pyrrole derivatives by this four-component reaction was less explored in the literature. Table 4 summarizes the comparison of our work with other reported catalysts.

3.5. Results of Mass Spectrometry and NMR Spectra

1-(1-Benzyl-5-methyl-3-phenyl-2H-pyrrole)ethanone (1a). Orange sticky liquid (535 mg, 74%); 1H NMR (CDCl3, 300 MHz) δ = 1.94 (s, 3H; CH3), 2.33 (s, 3H; CH3), 4.93 (s, 2H; CH2), 6.42 (s, 1H; CH), 6.96–7.23 ppm (m, 10H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.6 (s; CH3), 31.1 (s; CH3), 50.3 (s; CH2), 120.2 (C=CH), 125.9 (CC), 126.7 (CC), 126.7 (CHar), 127.9 (CHar), 128.2 (CHar), 1289.0 (CHar), 129.4 (CHar), 135.2 (CC), 136.3 (CC), 136.6 (CC), and 197.6 (C=O).

1-(2-Methyl-4-phenyl-1-(1-phenylethyl)-1H-pyrrol-3-yl)ethanone (1b). Solid orange (576 mg, 76%); 1H NMR (CDCl3, 300 MHz) δ = 1.70 (d, 3H; CH3), 1.93 (s, 3H; CH3), 2.31 (s, 3H; CH3), 5.26 (q, 1H; CH), 6.57 (s, 1H; Ar–H), 6.97–7.24 ppm (m, 10H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.5 (s; CH3), 22.2 (s; CH3), 31.2 (s; CH3), 54.9 (s; CH), 116.6 (C=CH), 122.0 (CC), 125.7 (CC), 125.9 (CHar), 126.6 (CHar), 127.7 (CHar), 128.3 (CHar), 128.9 (CHar), 129.4 (CHar), 135.1 (CC), 136.6 (CC), 142.0 (CC), 197.9 (C=O).

1-(2,5-Dimethyl-1,4-diphenyl-1H-pyrrol-3-yl)ethanone (1c). Yellow solid (347 mg, 48%); 1H NMR (DMSO, 300 MHz) δ = 1.79 (s, 3H; CH3), 1.84 (s, 3H; CH3), 2.18 (s, 3H; CH3), 7.26–7.58 ppm (m, 10H; Ar–H); 13C NMR (DMSO, 75 MHz) δ = 10.9 (s; CH3), 12.7 (s; CH3), 30.6 (s; CH3), 121.1 (CC), 121.3 (CC), 126.1 (CHar), 126.4 (CC), 128.1 (CHar), 128.2 (CHar), 129.6 (CHar), 130.2 (CHar), 133.7 (CC), 136.3 (CC), 136.8 (CC), 195.1 ppm (C=O); ESI-MS (positive mode) m/z = 289.1 [M]+.

1-(2,5-Dimethyl-4-phenyl-1-(1-phenylethyl)-1H-pyrrol-3-yl)ethanone (1d). Brown sticky liquid (713 mg, 90%); 1H NMR (CDCl3, 300 MHz) δ = 1.71 (d, 3H; CH3), 1.78 (s, 3H; CH3), 1.95 (s, 3H; CH3), 2.33 (s, 3H; CH3), 5.54 (q, 1H; CH), 7.02–7.30 ppm (m, 10H; HC-Ar); 13C NMR (CDCl3, 75 MHz) δ = 11.5 (s; CH3), 12.6 (s; CH3), 18.8 (s; CH3), 31.1 (s; CH3), 52.7 (s; CH), 122.9 (CC), 125.9 (CC), 126.1 (CHar), 126.5 (CHar), 127.2 (CHar), 128,1 (CHar), 128.4 (CHar), 130.3 (CHar), 130.7 (CHar), 134.0 (CC), 137.3 (CC), 140.9 (CC), 197.7 ppm (C=O); ESI-MS (positive mode) m/z = 317.1 [M]+.

1-(1-Benzyl-2,5-dimethyl-4-phenyl-1H-pyrrol-3-yl)ethanone (1e). White solid (561 mg, 74%); 1H NMR (DMSO, 300 MHz) δ = 1.76 (s, 3H; CH3), 1.93 (s, 3H; CH3), 2.36 (s, 3H; CH3), 5.18 (s, 2H; CH2), 6.97–7.38 ppm (s, 10H; Ar–H); 13C NMR (DMSO, 75 MHz) δ = 9.9 (s; CH3), 11.4 (s; CH3), 30.6 (s; CH3), 46.2 (s; CH2), 120.7 (CC), 121.4 (CC), 125.7 (CHar), 125.7 (CHar), 126.4 (CC), 127.1 (CHar), 128.1 (CHar), 128.7 (CHar), 130.2 (CHar), 133.5 (CC), 136.7 (CC), 137.3 (CC), 195,0 ppm (C=O); ESI-MS (positive mode) m/z = 303.1 [M]+.

1-(1-Isopropyl-2,5-dimethyl-4-phenyl-1H-pyrrol-3-yl)ethanone (1f). Brown sticky liquid (281 mg, 44%); 1H NMR (CDCl3, 300 MHz) δ = 1.54 (2d, 6H; CH3), 1.82 (s, 3H; CH3), 2.12 (s, 3H; CH3), 2.58 (s, 3H; CH3), 4.57 (m, 1H; CH), 7.38–7.20 ppm (m, 5H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.7 (s; CH3), 12.6 (s; CH3), 21.8 (s; CH3), 31.04 (s; CH3), 47.4 (s; CH3), 121.2 (CC), 122.9 (CC), 125.3 (CC), 126.4 (CHar), 128.1 (CHar), 130.6 (CHar), 133.4 (CC), 137.3 (CC), 197.5 ppm (C=O); ESI-MS (positive mode) m/z = 255.2 [M]+.

1-(4-(4-Chlorophenyl)-2,5-dimethyl-1-phenyl-1H-pyrrol-3-yl)ethanone (1g). Orange solid (404 mg, 50%); 1H NMR (CDCl3, 300 MHz) δ = 1.76 (s, 3H; CH3), 1.89 (s, 3H; CH3), 2.20 (s, 3H; CH3), 7.45–7.15 ppm (m, 10H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.1 (s; CH3), 13.0 (s; CH3), 31.0 (s; CH3), 120.8 (CC), 121.7 (CC), 126.9 (CC), 128.1 (CHar), 128.4 (CHar), 128.7 (CHar), 129.5 (CHar), 131.7 (CHar), 132.5 (CC), 135.2 (CC), 135.4 (CC), 137.4 (CC), 196.8 ppm (C=O); ESI-MS (positive mode) m/z = 323.1 [M]+.

1-(1-Benzyl-4-(4-chlorophenyl)-2,5-dimethyl-1H-pyrrol-3-yl)ethanone (1h). Yellow solid (565 mg 67%); 1H NMR (CDCl3, 300 MHz) δ = 1.95 (s, 3H; CH3), 2.07 (s, 3H; CH3), 2.49 (s, 3H; CH3), 5.12 (s, 2H; CH2), 6.97–7.39 ppm (m, 9H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 10.3 (s; CH3), 11.8 (s; CH3), 31,2 (s; CH3), 46.9 (s; CH2), 121.1 (CC), 121.6 (CC), 125.6 (CHar), 126.2 (CC), 127.5 (CHar), 128.4 (CHar), 128.9 (CHar), 131.9 (CHar), 132.5 (CC), 134.5 (CC), 135.6 (CC), 136.6 (CC), 196.8 (C=O) ppm; ESI-MS (positive mode) m/z = 337.1 [M]+.

1-(4-(4-Chlorophenyl)-2,5-dimethyl-1-(1-phenylethyl)-1H-pyrrol-3-yl)ethanone (1i). Brown sticky liquid (387 mg, 44%); 1H NMR (CDCl3, 300 MHz) δ = 1.88 (d, 3H; CH3), 1.91 (s, 3H; CH3), 1.98 (s, 3H; CH3), 2.24 (s, 3H; CH3), 6.67 (q, 1H; CH), 7.37–7.11 ppm (m, 9H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11,5 (s; CH3), 12.6 (s; CH3), 18.8 (s; CH3), 31.3 (s; CH3), 52.7 (s; CH), 121.6 (CC), 121.9 (CC), 125.9 (CHar), 126.1 (CC), 127.3 (CHar), 128.3 (CHar), 128.7 (CHar), 131.9 (CHar), 132.5 (CC), 134.3 (CC), 135.8 (CC), 140.7 (CC), 197.1 ppm (C=O); ESI-MS (positive mode) m/z = 351.1 [M]+.

1-(4-(4-Chlorophenyl)-1-isopropyl-2,5-dimethyl-1H-pyrrol-3-yl)ethan-1-one (1j). Brown sticky liquid (102,5 mg, 41%); 1H NMR (CDCl3, 300 MHz) δ = 1.56 (2d, 6H; CH3), 2.10 (s, 3H; CH3), 2.19 (s, 3H; CH3), 2.59 (s, 3H; CH3), 4.60–4.55 (m, 1H; CH), 7.37–7.15 ppm (m, 4H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.8 (s; CH3), 12.6 (s; CH3), 21.9 (s; CH3), 21.9 (s; CH3), 31.2 (s; CH3), 47.5 (s; CH), 125.5 (CC), 128.3 (CHar), 131.9 (CHar), 132.5 (CC), 133.6 (CC), 135.9 (CC), 197.6 ppm (C=O); ESI-MS (positive mode) m/z = 289.1 [M]+.

1-(2,5-Dimethyl-1-phenyl-4-(p-tolyl)-1H-pyrrol-3-yl)ethanone (1k). Brown sticky liquid (477 mg, 63%); 1H NMR (CDCl3, 300 MHz) δ = 1.87 (s, 3H; CH3), 2.00 (s, 3H; CH3), 2.31 (s, 3H; CH3), 2.40 (s, 3H; CH3), 7.54–7.22 ppm (m, 9H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.1 (s; CH3), 13.0 (s; CH3), 21.2 (s; CH3), 30.9 (s; CH3), 121.9 (CC), 122.1 (CC), 126.6 (CC), 128.2 (CHar), 128.6 (CHar), 128.9 (CHar), 129.4 (CHar), 130.4 (CHar), 133.8 (CC), 134.8 (CC), 136.1 (CC), 137.7 (CC), 197.3 ppm (C=O); ESI-MS (positive mode) m/z = 303.1 [M]+.

1-(1-Benzyl-2,5-dimethyl-4-(p-tolyl)-1H-pyrrol-3-yl)ethanone (1l). Brown sticky liquid (610 mg, 77%); 1H NMR (CDCl3, 300 MHz) δ = 1.97 (s, 3H; CH3), 2.40 (s, 3H; CH3), 2.45 (s, 3H; CH3), 2.52 (s, 3H; CH3), 5.12 (s, 2H; CH2), 7.33–6.99 ppm (m, 9H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 10.3 (s; CH3), 11.8 (s; CH3), 21.2 (s; CH3), 31.1 (s; CH3), 46.9 (s; CH2), 121.1 (CC), 121.6 (CC), 125.7 (CHar), 127.4 (CC), 128.2 (CHar), 128.9 (CHar), 130.6 (CHar), 134.1 (CC), 134.2 (CC), 136.1 (CC), 136.1 (CC), 196.8 ppm (C=O); ESI-MS (positive mode) m/z = 371.2 [M]+.

1-(2,5-Dimethyl-1-(1-phenylethyl)-4-(p-tolyl)-1H-pyrrol-3-yl)ethanone (1m). Brown sticky liquid (530 mg, 64%); 1H NMR (CDCl3, 300 MHz) δ = 1.92 (d, 3H; CH3), 1.93 (s, 3H; CH3), 1.95 (s, 3H; CH3), 2.40 (s, 3H; CH3), 2.45 (s, 3H; CH3), 5.62 (q, 1H; CH), 7.39–7.13 ppm (m, 9H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.5 (s; CH3), 12.7 (s; CH3), 18.9 (s; CH3), 21.2 (s; CH3), 31.2 (s; CH3), 52.7 (s; CH), 122.1 (CC), 122.9 (CC), 122.9 (CC), 125.9 (CHar), 127.2 (CHar), 128.7 (CHar), 128.9 (CHar), 130.5 (CHar), 133.9 (CC), 134.2 (CC), 136.0 (CC), 141.0 (CC), 197.7 ppm (C=O); ESI-MS (positive mode) m/z = 331.2 [M]+.

1-(1-Benzyl-2,5-dimethyl-4-(naphthalen-1-yl)-1H-pyrrol-3-yl)ethanone (1n). Brown sticky liquid (327 mg, 37%); 1H NMR (CDCl3, 300 MHz) δ = 1.48 (s, 3H; CH3), 1.68 (s, 3H; CH3), 2.44 (s, 3H; CH3), 4.97 (s, 2H; CH2), 7.72–6.84 ppm (m, 12H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 10.4 (s; CH3), 12.1 (s; CH3), 30.2 (s; CH3), 46.9 (s; CH2), 119.9 (CC), 122.3 (CC), 125.7 (CHar), 126.2 (CHar), 126.6 (CHar), 127.0 (CHar), 128.2 (CHar), 128.7 (CHar), 129.0 (CHar), 130.7 (CHar), 127.6 (CC), 127.6 (CC), 133.8 (CC), 135.1 (CC), 135.1 (CC), 136.9 (CC), 196.7 ppm (C=O); ESI-MS (positive mode) m/z = 353.1 [M]+.

1-(2,5-Dimethyl-4-(naphthalen-1-yl)-1-(1-phenylethyl)-1H-pyrrol-3-yl)ethanone (1o). Brown sticky liquid (358 mg, 39%); 1H NMR (CDCl3, 300 MHz) δ = 1.50 (s, 3H; CH3), 1.65 (s, 3H; CH3), 1.88 (d, 3H; CH3), 2.46 (s, 3H; CH3), 5.60–5.63 (q, 1H; CH), 7.06–7.75 ppm (m, 12H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.7 (s; CH3), 13.07 (s; CH3), 18.9 (s; CH3), 30.3 (s; CH3), 52.7 (s; CH), 120.0 (CC),120.1 (CC), 123.7 (CC), 125.4 (CHar), 125.7 (CHar), 126.2 (CHar), 126.9 (CC), 127.3 (CHar), 128.2 (CHar), 128.2 (CHar), 128.7 (CHar), 133.7 (CC), 134.9 (CC), 135.2 (CC), 141.1 (CC), 197.0 ppm (C=O); ESI-MS (positive mode) m/z = 367.1 [M]+.

1-(1-Isopropyl-2,5-dimethyl-4-(naphthalen-1-yl)-1H-pyrrol-3-yl)ethanone (1p). Brown sticky liquid (686 mg, 90%); 1H NMR (CDCl3, 300 MHz) δ = 1.57 (2d, 6H; CH3), 1.99 (s, 3H; CH3), 2.19 (s, 3H; CH3), 2.72 (s, 3H; CH3), 4.73 (m, 1H; CH), 7.38–7.89 ppm (m, 7H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 12.3 (s; CH3), 12.9 (s; CH3), 21.9 (s; CH3), 22.0 (s; CH3), 30.3 (s; CH3), 47.5 (s; CH), 120.3 (CC), 122.3 (CC), 125.7 (CHar), 126.1 (CHar), 126.3 (CC), 127.4 (CHar), 128.1 (CHar), 128.7 (CHar), 133.7 (CC), 133.7 (CC), 134.2 (CC), 135.4 (CC), 197.0 ppm (C=O); ESI-MS (positive mode) m/z = 305.1 [M]+.

Ethyl 1-benzyl-2-methyl-4-(p-tolyl)-1H-pyrrole-3-carboxylate (1q). Brown sticky liquid (241 mg, 29%); 1H NMR (CDCl3, 300 MHz) δ = 1.17 (t, 3H; CH3), 2.11 (s, 3H; CH3), 2.31 (s, 3H; CH3), 3.99 (q, 2H; CH2), 4.86 (s, 2H; CH2), 6.39 (s, 1H; CH), 6.87–7.25 ppm (m, 9H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.5 (s; CH3), 14.2 (s; CH3), 21.2 (s; CH3), 50.4 (s; CH2), 59.3 (s; CH2), 111.0 (CC), 120.4 (CHar), 126.2 (CC), 126.8 (CHar), 127.7 (CHar), 128.3 (CHar), 128.9 (CHar), 129.2 (CHar), 132.9 (CC), 135.5 (CC), 136.3 (CC), 136.9 (CC), 165.9 ppm (OC=O); ESI-MS (positive mode) m/z = 333.1 [M]+.

Ethyl 2-methyl-1,4-diphenyl-1H-pyrrole-3-carboxylate (1r). (220 mg, 43%); 1H NMR (CDCl3, 300 MHz) δ = 1.18 (t, 3H; CH3), 1.98 (s, 3H; CH3), 4.07 (q, 2H; CH2), 7.05 (s, 1H; CH), 7.04–7.37 ppm (m, 10H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 13.8 (s; CH3), 18.6 (s; CH3), 59.9 (s; CH2), 105.8 (CC), 126.2 (CHar), 127.1–131.0 (CHar), 140.4 (CC), 147.2 (CC), 168.1 ppm (OC=O); ESI-MS (positive mode) m/z = 305.2 [M]+.

Ethyl 1-benzyl-2-methyl-4-phenyl-1H-pyrrole-3-carboxylate (1s). Brown sticky liquid (343 mg, 43%); 1H NMR (CDCl3, 300 MHz) δ = 1.24 (t, 3H; CH3), 2.55 (s, 3H; CH3), 4.27 (q, 2H; CH2), 5.09 (s, 2H; CH2), 6.66 (s, 1H; CH), 7.13–7.52 ppm (m, 10H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 11.5 (s; CH3), 14.2 (s; CH3), 50.6 (s; CH2), 59.4 (s; CH2), 111.3 (CC), 120.5–129.4 (CHar), 126.2 (CC), 136.1 (CC), 136.5 (CC), 136.9 (CC), 165.9 ppm (OC=O); ESI-MS (positive mode) m/z = 319.1 [M]+.

Ethyl 2-methyl-4-phenyl-1-(1-phenylethyl)-1H-pyrrole-3-carboxylate (1t). Brown sticky liquid (341 mg, 41%); 1H NMR (CDCl3, 300 MHz) δ = 1.05 (t, 3H; CH3), 1.72 (d, 3H; CH3), 2.4 (s, 3H; CH3), 4.05 (q, 2H; CH2), 5.28 (q, 1H; CH), 6.64 (s, 1H; CH), 6.96–7.28 ppm (m, 10H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 10.3 (s; CH3), 12.9 (s; CH3), 21.1 (s; CH3), 54.0 (s; CH), 58.3 (s; CH2), 110.9 (CHar), 115.8 (CHar), 124.4 (CHar), 125.0 (CHar), 125.1 (CHar), 126.4 (CHar), 126.0 (CHar), 127.8 (CHar), 128.2 (CHar), 135.1 (CC), 135.3 (CC), 135.7 (CC), 141.1 (CC), 165.2 ppm (OC=O); ESI-MS (positive mode) m/z = 333.2 [M]+.

Ethyl 1-isopropyl-2-methyl-4-phenyl-1H-pyrrole-3-carboxylate (1u). Brown sticky liquid (196 mg, 29%); 1H NMR (CDCl3, 300 MHz) δ = 1.19 (t, 3H; CH3), 1.38 (2d, 6H; CH3), 2.48 (s, 3H; CH3), 4.07 (q, 2H; CH2), 4.28 (m, 1H; CH), 6.56 (s, 1H; CH), 7.14–7,47 ppm (m, 5H; Ar–H); 13C NMR (CDCl3, 75 MHz) δ = 10.1 (s; CH3), 13.0 (s; CH3), 22.2 (s; CH3), 28.7 (s; CH3), 46.0 (s; CH), 58.2 (s; CH2), 110.2 (CC), 114.1 (CHar), 124.9 (CHar), 126.9 (CC), 127.3 (CHar), 130.5 (CHar), 134.3 (CC), 135.3 (CC), 165.0 ppm (OC=O); ESI-MS (positive mode) m/z = 271.1 [M]+.

4-(Benzylamino)pent-3-en-2-one. Brown sticky liquid (315 mg, 98%). 1H NMR (CDCl3, 300 MHz) δ = 1,79 (s, 3H; CH3), 1.89 (s, 3H; CH3), 4.29 (s, 2H; CH2), 8.80 (s, 1H; CH), 7.11–7.16 (m, 5H; Ar–H), 11,04 ppm (s, 1H; NH); 13C NMR (CDCl3, 75 MHz) δ = 18.65 (s; CH3), 28.68 (s; CH3), 46.45 (s; CH2), 95.85 (s; C=CH), 126.43 (CHar), 127.23 (CHar), 128.65 (CHar), 138.03 (CHar), 162.54 (CC), 194.70 ppm (C=O).

3.6. Electrochemical Study

Corrosion leads to a significant loss of materials, energy, and money [33]. This results in a loss of products in industrial installations and can lead to serious accidents and contribute to environmental pollution. However, there are many ways to prevent and stem this phenomenon. Among them, corrosion inhibitors are used to control and reduce metal corrosion in aqueous environments [34, 35]. Thus, we have tested the synthesized polysubstituted pyrroles as corrosion inhibitors of S300 steel in 1 M hydrochloric acid, and the results are presented in Figure 2.

The data in Figure 2 clearly show that the addition of different pyrrolic molecules inhibits the steel corrosion. The presence of an inhibitor clearly affects the corrosion mechanism. It could be attributed to the adsorption process of active molecules onto the steel surface leading to an increase in surface coverage [36, 37]. The adsorption phenomena could be occurring due to the donor-acceptor interactions between the vacant d-orbital of the steel surface and the lone-pair electron of the heteroatom, as well as the aromatic rings of inhibitors [38].

It can be seen from Table 5 that the inhibition efficiency of different compounds varies from 82% to 96%. The results summarized in Table 5 clearly show that the maximum displacement of corrosion potential occurred around 69 mV compared to the blank. This result reveals that different compounds act as mixed-type inhibitors [39].

4. Conclusion

In conclusion, we have successfully performed an environmentally friendly, operationally simple, economical, and efficient synthesis of pyrrole derivatives by a one-pot synthesis via a four-component domino reaction. This green protocol, using 1,3-dicarbonyl compounds, aromatic aldehydes, aliphatic and aromatic amines, and nitroalkanes compounds in the presence of natural hydroxyapatite in solvent-free reaction, leads to the synthesis of highly functionalized tetra- or penta-substituted pyrroles with a wide variety of substrates. The advantage of this protocol is the use of hydroxyapatite as a cheap, natural, and nontoxic catalyst. Finally, different compounds were found to be good corrosion inhibitors for S300 steel in a 1 M HCl solution at 10−3 M. The maximum inhibition efficiency was found to be around 96%, and the inhibitors revealed a mixed behavior.

Data Availability

No data were used to support this study.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Supplementary Materials

NMR and mass spectrum of some significant prepared products. (Supplementary Materials)