An itch is a stimulus affecting the nerve endings between the dermis and epidermis; scientists liken it to a form of pain. But that's neither here nor there. It's usually caused by histamine released in the epidermis. Scratching stops it, either by interfering with the nerve impulses or by temporarily damaging the nerves themselves.