Carpal tunnel syndrome occurs when the median nerve is pinched inside the wrist’s narrow carpal tunnel. There is usually no single cause that can be found for the condition. Instead, multiple risk factors often contribute, such as the structure of your wrist, injury, and the presence of conditions that cause inflammation and swelling. Stress due to repetitive motion is also a risk factor.