A dorsal fin provides stability, balance, and maneuverability, acting like a keel or rudder during swimming and turning.
In some species, spines on the fin offer defense. Fin shape also aids species identification and, occasionally, communication.
Form and function vary across fish species.