Endorphins are natural opium-like hormones that are produced by the pituitary gland and the hypothalamus of your body. Endorphins act on your brain's opiate receptors to block their ability to receive pain messages from the sensory nerves. This makes you less sensitive to pain. Endorphins also work on your emotions.