Stop riding and check
If the chain jams between the cassette and the spokes, stop pedaling right away. Don’t try to pull the chain free while the pedals are turning. The wheel can lock, and the chain can snap or jam hard enough to throw you off the bike.
Once the bike is stopped, turn it upside down or lift it onto a stand. Keep your fingers clear of the cassette and spokes, and free the chain only with the wheel stopped. Check the chain, the cassette and the spokes for damage before you ride again.
Why the chain reaches the spokes
The rear derailleur moves inward toward the spokes to reach the largest cogs. The L limit screw is what stops it from moving too far. If the L screw is too loose, or the hanger is bent so the derailleur sits at an angle, the derailleur can move too far in and the chain runs into the spokes.
Check the derailleur hanger
The hanger is the most common reason for this problem. From behind the bike, the derailleur should sit in line with the cassette. If it leans in toward the spokes, or the shifting won’t settle no matter how you adjust the screws, the hanger may be bent. How to check bike frame alignment explains the check.
Watch for signs of a bent derailleur hanger, such as a derailleur that sits at an angle, a chain that won’t index cleanly, or a chain that rubs the spokes only in the largest gears. A slightly bent steel hanger can sometimes be straightened. An aluminum hanger is harder to fix. How to straighten derailleur hanger covers the steps.
Check the L limit screw
With the rear wheel off the ground, shift to the largest cog and turn the cranks by hand. The cage should stop before it reaches the spokes. If it keeps moving in, turn the L screw in a little to stop the travel, then retest. How to set rear derailleur limit screws has the full sequence.
If the L screw has to be turned in a long way to stop the chain, look at the hanger before you go further.
Check the wheel is seated
A wheel that sits off-center in the dropouts changes the chain’s path, and it can make the chain run closer to the spokes. Check that the axle or quick release is tight, and that the wheel sits square in the dropouts. How to install bike wheel correctly in dropouts covers this step.
Check the cassette lockring is tight as well. A loose cassette can shift on the freehub body and change the chain’s path.
After a crash
A crash can bend the hanger, the derailleur cage or the wheel. Check all three before riding again. A bent cage plate can rub or catch the chain, and can you straighten a bent derailleur cage explains what’s possible at home.
When to replace the parts
If the hanger is badly bent, cracked, or won’t hold its alignment, replace it. A spare hanger is a useful part to carry. Should you carry spare derailleur hanger explains when it’s worth it. If the derailleur itself is cracked or the cage is badly bent, replace the derailleur. A shop can check the frame dropouts and the hanger with an alignment tool.