Liu et al. demonstrate that the m6Am methyltransferase PCIF1 in ACC neurons is crucial for both the initiation and maintenance of inflammatory pain and comorbid anxiety. They further reveal that PCIF1 modulates these behaviors by targeting Gap43 m6Am modification, thereby promoting GAP43 expression.