Gate control theory states that before pain signals can reach the brain, they encounter nerve gates in the spinal cord that may be opened or closed.

According to the theory, a number of factors determine which pain messages are allowed to get through the nerve gates and reach the brain, such as the strength of the pain message, competing messages (such as touch or heat), and the priority that brain signals give the pain message.