Foil shaped fins generate thrust when moved, the lift of the fin sets water or air in motion and pushes the fin in the opposite direction.
Fish use multiple fins, so it is possible that a given fin can have a hydrodynamic interaction with another fin.