When nerve cells release substance, the body produces chemicals called endorphins – and it similarly acts on brain cells like morphine. As a result, when we eat chili, it elevates the mood and increases the feel-good factor.