Endorphins are a group of peptides that are produced by your pituitary gland and central nervous system and that act on the opiate receptors in your brain.