ABSTRACT: This aim of this study was to investigate the key genes and pathways involved in the response to pain in goat and sheep by transcriptome sequencing.Chronic pain was induced with the injection of the complete Freund's adjuvant (CFA) in sheep and goats. The animals were divided into four groups: CFA-treated sheep, control sheep, CFA-treated goat, and control goat groups (n?=?3 in each group). The dorsal root ganglions of these animals were isolated and used for the construction of a cDNA library and transcriptome sequencing. Differentially expressed genes (DEGs) were identified in CFA-induced sheep and goats and gene ontology (GO) enrichment analysis was performed.In total, 1748 and 2441 DEGs were identified in CFA-treated goat and sheep, respectively. The DEGs identified in CFA-treated goats, such as C-C motif chemokine ligand 27 (CCL27), glutamate receptor 2 (GRIA2), and sodium voltage-gated channel alpha subunit 3 (SCN3A), were mainly enriched in GO functions associated with N-methyl-D-aspartate (NMDA) receptor, inflammatory response, and immune response. The DEGs identified in CFA-treated sheep, such as gamma-aminobutyric acid (GABA)-related DEGs (gamma-aminobutyric acid type A receptor gamma 3 subunit [GABRG3], GABRB2, and GABRB1), SCN9A, and transient receptor potential cation channel subfamily V member 1 (TRPV1), were mainly enriched in GO functions related to neuroactive ligand-receptor interaction, NMDA receptor, and defense response.Our data indicate that NMDA receptor, inflammatory response, and immune response as well as key DEGs such as CCL27, GRIA2, and SCN3A may regulate the process of pain response during chronic pain in goats. Neuroactive ligand-receptor interaction and NMDA receptor as well as GABA-related DEGs, SCN9A, and TRPV1 may modulate the process of response to pain in sheep. These DEGs may serve as drug targets for preventing chronic pain.