Balance and rotations

The same keys inserted in sorted order make a chain of height $n - 1$, so balanced trees such as AVL and red-black trees keep the height $O(\log n)$ by rotating, a change of three links that lifts a child over its parent and keeps the keys in order.

From Data Structures and Algorithms.