Many important chemical compounds are derived from benzene by replacing one or more of its hydrogen atoms with another functional group. Examples of simple benzene derivatives are phenol, toluene, and aniline, abbreviated PhOH, PhMe, and PhNH, respectively. Linking benzene rings gives biphenyl, CH–CH. Further loss of hydrogen gives "fused" aromatic hydrocarbons, such as naphthalene, anthracene, phenanthrene, and pyrene. The limit of the fusion process is the hydrogen-free allotrope of carbon, graphite.
In heterocycles, carbon atoms in the benzene ring are replaced with other elements. The most important variations contain nitrogen. Replacing one CH with N gives the compound pyridine, CHN. Although benzene and pyridine are structurally related, benzene cannot be converted into pyridine. Replacement of a second CH bond with N gives, depending on the location of the second N, pyridazine, pyrimidine, or pyrazine.