The volatile fraction of the leaves of Thymus pannonicus All. (Lamiaceae) was analyzed by headspace extraction followed by GC-FID and GC-MS analysis. The different headspace profiles were recognized, with citral and with monoterpene hydrocarbons as dominant compounds. In addition, the determination of Cr, Co, Ni, Mo, Cu, Zn, Mn, Fe, Mg, Ca, K and Na was conducted by spectroscopic techniques (FAAS, GFAAS and ICP-OES). In order to evaluate the relationship between volatile organic compounds and metals, a chemometrics approach was applied. The data obtained by analysis of the headspace and elemental content were subjected to correlation analysis, factor analysis, principal component analysis and cluster analysis. A number of significant correlations of metals with plant volatiles were found. Correlation of Zn with citral, Mn with oxygenated monoterpenes and Mg with β-bourbonene, could be explained by involvement of metals in the biosynthesis of volatile organic compounds.