In order to investigate the dynamic processes of mRNA levels of proenkephalin, proopiomelanocortin, prodynorphin, and opioid receptors (δ-, μ-, and κ-receptor) induced by electroacupuncture (EA) in the central nerve system, goats were stimulated by EA of 60 Hz for 0.5 h at a set of Baihui, Santai, Ergen, and Sanyangluo points. The pain threshold was measured using the method of potassium iontophoresis. The mRNA levels of the three opioid peptide precursors and three opioid receptors were determined with quantitative real-time PCR and the levels of Met-enkephalin with SABC immunohistochemistry at 0.5 h before and at 0, 2, 4, 6, 8, 12, and 24 h after EA. The results showed that the pain threshold correlated (P < 0.01) with Met-enkephalin immunoactivities in the measured nuclei and areas of goats. The analgesic aftereffect lasted for 12 h at least. The mRNA levels of the three opioid peptide precursors and three opioid receptors began to increase at 0 h, reached the peak during the time from 4 h to 6 h or at 12 h, and remained higher at 24 h after EA was discontinued. These results suggested that the initiation of gene expression of opioid peptides and the three receptors may be associated with EA-induced analgesic aftereffect.