Local anesthetics are medications used to cause temporary loss of sensation in a specific area of the body, allowing medical procedures to be performed without pain. They work by blocking the sodium channels in nerve cells, preventing the propagation of nerve impulses that signal pain.