Abstract Tuna keeps its median fins erect in searching and feeding behaviors. During the process of these behaviors, tuna probably needs to yaw frequently in the wake of a shoal of small fish. This paper aims to clarify the functional mechanism of the erected median fins on yaw mobility in unsteady flow. Firstly, the CAD simulation models with two morphing states of the median fins are constructed by scanning and measuring the physical prototype of real yellowfin tuna. Secondly, the wake environment of the fish school is created by swinging a tuna model back and forth. Lastly, the hydrodynamic analysis of different morphing states of tuna median fins in unsteady flow is carried out. The results show that the lift forces of the median fins increases in the erection state to a certain extent, which is beneficial to the tuna’s yaw motions. Moreover, the hydrodynamics of the tuna’s body also rise due to the interaction between the body and the median fins. This further improves the yaw mobility of the tuna in unsteady flow.