When comparing distributions across several groups, it shows more than a box plot — a box plot compresses each group into five numbers, while a ridgeline keeps the actual curve, so a bimodal shape (two humps) or a skew is visible directly instead of hidden behind a median line.
The trick is deliberate overlap: space the baselines closer together than the curves are tall, so a curve's peak intrudes into the row above it, and the row drawn "in front" naturally occludes part of the one behind — a cheap, effective sense of depth. The fill needs to be an opaque background color for that occlusion to work; a translucent fill lets overlapping curves show through each other and turns the whole thing muddy.
Past around ten groups, the overlap gets so heavy that curves further back nearly disappear — fold groups together or switch to small multiples instead. Group order should also mean something: stacking categories that have no natural order (unlike time or size) into a "mountain range" shape implies a trend that isn't actually there.
When to use
Use it to compare the shape of several groups’ distributions — peak count, skew — on one screen. Past ten groups, or when exact numbers matter, use a box or violin plot instead.