Chilli peppers contain capsaicin, for which there are specific receptors in nerves which not only transmit pain, but also initiate neuroendocrine responses.
Chilli has anti-inflammatory, antibiotic, and anti-cancer actions. In the gut it is generally more protective than it is irritant. Capsaicin is also used as a ‘local anaesthetic’ for neuropathic pain.