"The derailleur hanger acts as a predetermined breaking point between the frame and the derailleur. In the event of a fall or a knock against the rear derailleur, the derailleur hanger breaks first and the expensive rear derailleur remains intact. At least that's the theory.
In practice, however, the derailleur hanger often bends just by putting the bike down a little roughly. The chain rattles, skips gears when shifting or, in the worst case, even falls into the spokes in the lowest gear. Many derailleur hangers are already slightly bent when new. The high-quality XT then only runs like a cheap Shimano Altus. Only very few bike shops check this point during final assembly. In addition, modern derailleur hangers have become much more massive in recent years and are difficult to align precisely without risking breakage.
Just how important the angularity of the derailleur hanger really is can be seen in the new 12-speed shifting systems. If the derailleur hanger deviates from the plumb line by even a few tenths of a degree, the shifting behaviour deteriorates noticeably. For example, does the gear shifting work well in principle, but gets worse the further inwards you shift? Then in most cases the fault lies with the derailleur hanger. Minor deviations can usually be aligned, the right tool (e.g. Park Tool DAG-2.2, costs 72.99 euros at Wigglesport). If the derailleur hanger is badly bent, it often tears off directly during alignment. Unfortunately, I have to dispel the myth that you can simply straighten a derailleur hanger on the trail. In most cases, you only limit the damage. But precise shifting is no longer possible."
It is often not just the derailleur hanger that is to blame when gears jump or the chain rattles. Other factors can also have a huge impact on shifting behaviour. Here are the most common faults:
You can read this article or the entire issue of BIKE 7/2018 in the BIKE app (iTunes and Google Play) or buy the issue in the DK shop reorder:

Editor