Headspace solid-phase microextraction (HS-SPME) combined with gas chromatography-mass spectrometry (GC-MS) was developed for characterization of volatile compounds emitted from two varieties Osmanthus flowers of O. fragrans var. latifolius and O. fragrans var. thunbergii. The SPME parameters were studied, the optimum conditions of a 65 microm carbowax/divinylbenzene (CW/DVB), extraction temperature of 22 degrees C and extraction time of 10 min were obtained and applied to extraction of the volatile emissions. Fourteen compounds released from both varieties of Osmanthus flowers were separated and identified by GC-MS, which mainly included alpha-linalool, beta-linalool, trans-linalool oxide, cis-linalool oxide, alpha-lonone, beta-lonone, capraldehyde and decalactone. By comparing their peak areas, we found that the sums of the fourteen compounds from the two Osmanthus flowers were very close, while the relative contents of individual volatile compounds in the two emissions were very different. The relative content of alpha-linalool and beta-linalool in O. fragrans var. latifolius were 39.46% and 0.51%, while in O. fragrans var. thunbergii were 9.53% and 27.71%. Due to their different relative contents, the two varieties of flower have different fragrances.