A tuna-shaped robot takes advantage of the real fish’s secret for speed and nimbleness: selectively folding or sticking out its fins, a feature that could improve aquatic robot designs.