Pyrrole and Pyridine
Structure and aromaticity of pyrrole
Pyrrole is a five-membered heterocyclic compound containing one nitrogen atom and four carbon atoms (). What makes pyrrole special is how its nitrogen participates in aromaticity: the nitrogen's lone pair is donated directly into the aromatic system.
This gives pyrrole 6 electrons total (4 from the two C=C double bonds + 2 from nitrogen's lone pair), satisfying Hückel's rule ( where ). That lone pair donation has two major consequences:
- Pyrrole is an extremely weak base. Protonation of nitrogen would pull the lone pair out of the system, destroying aromaticity. The aromatic stabilization energy is worth more than the energy gained from protonation, so pyrrole resists acting as a base ( of conjugate acid ≈ ).
- Pyrrole is electron-rich and highly reactive toward electrophilic aromatic substitution (EAS). The nitrogen feeds electron density into the ring, making pyrrole more reactive than benzene toward EAS. Substitution occurs preferentially at the C-2 position (adjacent to nitrogen), where the intermediate cation is best stabilized.
Pyrrole does not undergo Diels-Alder reactions despite having a conjugated diene-like framework, because doing so would break aromaticity. All atoms in the ring are hybridized, and the molecule is planar with full resonance delocalization.

Basicity and reactivity of pyridine
Pyridine is a six-membered heterocyclic compound with one nitrogen atom and five carbon atoms (). Unlike pyrrole, pyridine's nitrogen lone pair sits in an orbital in the plane of the ring and is not part of the aromatic system. The 6 electrons come entirely from the three C=C/C=N double bonds.
This distinction is the single most important concept in heterocyclic amine chemistry:
- Pyridine is a reasonable base and nucleophile because its lone pair is available for protonation or bond formation without disrupting aromaticity ( of conjugate acid ≈ ).
- Pyridine is less basic than typical alkylamines (e.g., triethylamine, ≈ ) because the lone pair is in an orbital, which holds electrons more tightly than the orbital of an alkylamine.
- Pyridine is much more basic than pyrrole because protonation doesn't cost any aromatic stabilization.
For EAS reactivity, pyridine behaves opposite to pyrrole. The electronegative nitrogen withdraws electron density from the ring through both inductive and resonance effects, making pyridine less reactive than benzene. EAS on pyridine is difficult and occurs at the C-3 position (meta to nitrogen), where deactivation is least severe. Nucleophilic aromatic substitution, on the other hand, is favored at C-2 and C-4.
Quick comparison: Pyrrole = lone pair in the system → electron-rich ring, very weak base. Pyridine = lone pair outside the system → electron-poor ring, moderate base.

Heterocyclic amines vs other compounds
Many biologically important heterocycles combine features of both pyrrole-type and pyridine-type nitrogens. Recognizing which nitrogen is which tells you almost everything about the molecule's basicity and reactivity.
Imidazole ()
- Five-membered ring with two nitrogen atoms
- Aromatic with 6 electrons: one nitrogen is pyrrole-like (lone pair donated to the system), and the other is pyridine-like (lone pair in the ring plane, available for protonation)
- The pyridine-like nitrogen makes imidazole a decent base ( of conjugate acid ≈ )
- Displays tautomerism: a proton shifts between the two nitrogens, interconverting which nitrogen is pyrrole-like and which is pyridine-like
- Found in the amino acid histidine, where it acts as an acid-base catalyst in enzyme active sites
Thiazole ()
- Five-membered ring with one nitrogen and one sulfur atom
- Aromatic with 6 electrons: 4 from double bonds and 2 from sulfur's lone pair (sulfur plays the pyrrole-like role here)
- The nitrogen is pyridine-like, with its lone pair available for protonation, but thiazole is less basic than imidazole ( of conjugate acid ≈ ) because sulfur is less effective at donating electron density than a pyrrole-type nitrogen
- Found in the structure of thiamine (vitamin )
Pyrimidine ()
- Six-membered ring with two nitrogen atoms, both pyridine-like
- Aromatic with 6 electrons from three double bonds
- Less basic than pyridine ( of conjugate acid ≈ ) because the second nitrogen further withdraws electron density from the ring
- Even less reactive toward EAS than pyridine for the same reason
- Forms the core of the nucleic acid bases cytosine, thymine, and uracil
Electronic effects in heterocyclic amines
The reactivity and basicity patterns across all these heterocycles come down to how electron density is distributed in the ring.
- Electron-donating heteroatoms (pyrrole-type nitrogen, sulfur in thiophene/thiazole) increase ring electron density. This activates the ring toward EAS but reduces the basicity of that particular heteroatom since its lone pair is tied up in the system.
- Electron-withdrawing heteroatoms (pyridine-type nitrogen) decrease ring electron density. This deactivates the ring toward EAS but makes that nitrogen a viable base and nucleophile.
- Substituents on the ring follow the same logic as benzene chemistry. Electron-donating groups (, ) increase electron density and direct EAS to specific positions, while electron-withdrawing groups (, ) decrease it.
When a ring contains multiple heteroatoms, the combined electronic effects determine the overall reactivity. Pyrimidine, for example, is doubly deactivated compared to pyridine because two nitrogens are pulling electron density out of the ring.