Acute pain is protective and a cardinal feature of inflammation. Chronic pain after arthritis, nerve injury, cancer, and chemotherapy is associated with chronic neuroinflammation, a local inflammation in the peripheral or central nervous system. Accumulating evidence suggests that non-neuronal cells such as immune cells, glial cells, keratinocytes, cancer cells, and stem cells play active roles in the pathogenesis and resolution of pain. We review how non-neuronal cells interact with nociceptive neurons by secreting neuroactive signaling molecules that modulate pain. Recent studies also suggest that bacterial infections regulate pain through direct actions on sensory neurons, and specific receptors are present in nociceptors to detect danger signals from infections. We also discuss new therapeutic strategies to control neuroinflammation for the prevention and treatment of chronic pain.