Objective: To explore the analytic method of volatile components in pitaya flower. Methods: Headspace solid phase microextraction (HS/SPME) technology was used to extract volatile components from pitaya flower. Gas chromatography coupled with mass spectrometry (GC-MS) was used to identify volatile components in pitaya flower at the condition of programmed temperature increase to 250 ℃, sample injection temperature at 250 ℃ and electronic ionization as the ion source. Results: A total of 49 volatile compounds were identified, which included sesquiterpenes and their oxidized derivatives (27.78%), alkanes (25.14%) and esters (14.40%), 2,6-di-tert-butyl-p-cresol (10.08%) and siloxane compounds (6.27%). Conclusion: HS/ SPME-GC/MS strategy is a useful and feasible method for the analysis of volatile components in pitaya flower.