The evolution of transient flow structures and mass transport in cavitating flow around a pitching hydrofoil is investigated qualitatively and quantitatively, and the interaction between cavitation patterns and vortices is elucidated from Lagrangian viewpoint. First, turbulence effects are estimated by the density-corrected k–ω model to account for the local compressibility of the multiphase flow at Reynolds number Re=6.4×105. Then, the formation and evolution of vorticity structures during the whole pitching cycle are analyzed using Lagrangian averaged vorticity deviation method. By comparing the flow structures and hydrodynamic properties at varying angles of attack, the cavitating flow is divided into two distinct stages, namely multi-scale cloud cavitation phase from α+=10° to α−=8°, and traveling sheet cavitation phase from α−=8° to α+=10°. Specifically in cloud cavitation, the formation of the cavitation pattern is closely related to the development of the main vortex. Furthermore, the quantitative analysis method based on Lagrangian flow network is developed to deeply analyze the transport and mixing processes. Importantly, the coherence ratio and the mixing parameter are proposed as transport indicators to precisely quantify the spatial connectivity behavior. Finally, the correlations between vapor fraction, codelength, global coherence ratio and global mixing parameter are evaluated. As the conclusion, it is shown that Lagrangian methods are powerful tool for both qualitative and quantitative analysis, and the results obtained could provide a key and important understanding of the flow structure and changing mechanism between cavitation and vortices in marine hydro and propulsion systems.