The volatile mono-and sesquiterpenes obtained from the needles and resin of Pinus armandi, P. tabulaeformis, and P. bungeana growing in the Qinling, Taibai, and Huanglong Mountain forest ecosystem were analyzed by means of GC-MS. Forty-eight constituents were identified, and α-pinene, β-pinene, 1R-α-pinene, β-caryophyllene, cadindiene, α-caryophyllene, D-limonene, and 1S-β-pinene were the major components of the mono-and sesquiterpenes in the needles and resin. The components of the volatile monoand sesquiterpenes from the needles and resin at Qinling, Taibai, and Huanglong Mountains had remarkable differences in three pine species, whereas the monopertene content such as α-pinene, β-pinene, D-limonene, and camphene were mostly changed in the growing stage. The intraspecies variation in the different ecosystems can be attributed to the species' geography and genetic variation, and even the adaptation of the pine species to different ecological environments. Moreover, monoterpenes and sesquiterpenes can be induced by the attack of bark beetles, of which the α-pinene, β-pinene, 1R-α-pinene, 1S-α-pinene, β-myrecene, and β-caryophyllene contents had positive relations with the attacking Dendroctonus armandi and D. valens.