Medial branch nerve blocks or facet blocks involve injecting local anesthetic near small nerves called medial branches that supply the facet joints of the spine. These injections aim to alleviate pain arising from these joints due to conditions like arthritis or injury. They serve both as diagnostic tools to identify the source of pain and as therapeutic interventions to provide pain relief.