The dynamics of large cavity and the accompanied water column separation and rejoining induced by fast closing of a butterfly valve in an undulating pipeline system are investigated in this study. The three-dimensional computational fluid dynamics numerical simulations are performed using a newly developed interfacial surface tension-based model (ISTM) that accounts for the surface tension effect on large cavities. The applicability of the ISTM model is validated with the experimental data, showing better accuracy in predicting pressure fluctuations and cavity evolutions than three typical cavitation models. Differences in cavitation characteristics are observed between upstream and downstream of the valve. Upstream the valve, cavitation primarily appears at the pipe top, with the vapor volume fraction varying sharply due to the rarefaction pressure waves (maximum value of 0.0073). Downstream the valve, the complete water-column separation occurs, and vapor volume fraction changes slowly correspond with the growth and collapse of the large cavity (maximum value of 0.647). The maximum length of the large cavity can reach about six times the pipe diameter, with a minimum water vapor interface angle of 16°. The cavitation evolution displays a transition from a clustered inception to a sheet-like growth and collapse pattern. These findings contribute to the design and operation guidance for complex hydraulic systems during transient processes.