Pepper is one of the most popular spices over the world and is called the King of Spices. Its essential oils (EOs) could alleviate neuronal ailments due to the inhibitory effect against acetylcholinesterase (AChE). In this study, the chemical compositions of 26 EOs prepared from white and black pepper collecting from 6 different cultivars were analyzed by gas chromatography-mass spectrometry (GC-MS). A total of 133 compounds were identified in the white and black pepper EOs. Monoterpenes and sesquiterpenes were found to be riched in these EOs, of which α-pinene, β-pinene, sabinene, 3-carene, limonene, and ( E)- β-caryophyllene were the major constituents. Most of pepper EOs showed potential AChE inhibitory activity with half-maximal inhibitory concentration (IC50) values in the range of 0.5-182.5 µg/mL. Comparison of chemical constitutes of pepper EOs from different cultivars suggested that α-pinene, β-pinene, and 3-carene with an IC50 value of 3.2, 53.3, and 2.9 µg/mL, respectively, might be used as Quality-marker (Q-marker) of pepper oil in inhibiting AChE.