Benzocaine works by blocking nerve signals in the body. It prevents sodium from entering nerve endings at the site of pain, thus numbing the area. This mechanism is particularly useful in providing temporary relief from discomfort in children, especially during teething.