What is the function of the dorsal fin?

The main function of the dorsal fin in any animal with a dorsal fin is stability. Some fish have adapted for using the dorsal fin for other uses, such as propulsion in the Sunfish. The anglerfish's dorsal fin has evolved to work as a fishing pole so that the fish can bait and catch their prey.