You're riding along, sprinting up the trail, when you suck a stick into the rear derailleur. POW! Your derailleur is toast. Believe it or not, it's not difficult to replace the rear derailleur yourself. Before replacing a "bent derailleur" make sure it's not just the derailleur hanger that needs straightening or replacing!
![This is your idler pulley. This is your idler pulley.](http://cdn1.utahmountainbiking.com/fix/images/pics-fix/rshift02.jpg)
![It's easier to remove a pulley than to repair a chain! It's easier to remove a pulley than to repair a chain!](http://cdn1.utahmountainbiking.com/fix/images/pics-fix/ch-brk07.jpg)
![The derailleur is screwed into a "derailleur hanger." The derailleur is screwed into a "derailleur hanger."](http://cdn1.utahmountainbiking.com/fix/images/pics-fix/r-drlr01.jpg)
The derailleur will now come away from the hanger.
![Removing the shifter cable from the derailleur. Removing the shifter cable from the derailleur.](http://cdn1.utahmountainbiking.com/fix/images/pics-fix/r-drlr05.jpg)
![Putting the new derailleur on the hanger. Putting the new derailleur on the hanger.](http://cdn1.utahmountainbiking.com/fix/images/pics-fix/r-drlr06.jpg)
Thread the mounting bolt into the hanger.
If you split the chain, route it by hand. It goes forward ABOVE the top pulley, down in FRONT of the pulley, around the BACK of the lower pulley, then forward BELOW the bottom pulley. Fix the chain.
![Routing the chain over the derailleur pulleys and the cassette cogs. Routing the chain over the derailleur pulleys and the cassette cogs.](http://cdn1.utahmountainbiking.com/fix/images/pics-fix/r-drlr07.jpg)
Push the derailleur cable through the receptacle on the back of the derailleur. Pull the cable hard to remove any obvious slack. Then relax your pull on the cable and thread it through the cable clamp. Screw in the cable clamp bolt to tighten it down onto the cable.
The derailleur is now installed. But it's not ready to shift gears yet. Next you'll need to set the limiting screws, and adjust the cable tightness. See our section on rear derailleur tuneup .