The ability of a biofilm to switch between the mixtures of mostly aromatic and aliphatic hydrocarbons was investigated to assess biofiltration efficiency and potential substrate interactions. A switch from gasoline, which consisted of both aliphatic and aromatic hydrocarbons, to a mixture of volatile diesel n-alkanes resulted in a significant increase in biofiltration efficiency, despite the lack of readily biodegradable aromatic hydrocarbons in the diesel mixture. This improved biofilter performance was shown to be the result of the presence of larger size (C 9 -C 12 ) linear alkanes in diesel, which turned out to be more degradable than their shorter-chain (C 6 -C 8 ) homologues in gasoline. The evidence obtained from both biofiltration-based and independent microbiological tests indicated that the rate was limited by biochemical reactions, with the inhibition of shorter chain alkane biodegradation by their larger size homologues as corroborated by a significant substrate specialization along the biofilter bed. These observations were explained by the lack of specific enzymes designed for the oxidation of short-chain alkanes as opposed to their longer carbon chain homologues.Implications: Biological removal of petroleum hydrocarbons from contaminated air has not become a widely used technology due to its low efficiency. This paper presents the analysis of this problem using bench-scale experiments and provides several reasons for the low biodegradation efficiency of gasoline. The results reported suggest that gasoline removal efficiency strongly depends on the substrate composition, with aromatic hydrocarbons being removed preferentially. The study also opens up a new perspective for the efficient biofiltration of diesel hydrocarbons as opposed to gasoline, as higher molecular weight n-alkanes of diesel were removed readily. By contrast, low-molecular-weight n-alkanes of gasoline turned out to be poor substrates for biofiltration, and the biological reasons for this phenomenon were suggested.