[1] This work presents a two-dimensional hydraulic model that includes gates as internal structures. The flow is modeled using the two-dimensional shallow water equations and the gates are formulated as internal boundary conditions to provide a simulation tool for water flood management. When open channel flow in a river passes through a gate, the shallow water equations are no longer valid and energy conservation laws are required. The change in the set of equations is avoided by modeling gates as a spatial discontinuity or internal boundary condition, providing an alternative algorithm to the one used in the rest of the flooded computational domain. In the first part of this work, the requirements of an adequate discretization for gate modeling are provided in the context of a finite volume numerical scheme able to handle all kind of flow regimes over complex bed topography. In the second part of this work, the formulation of the internal boundary conditions is verified by means of a test case with exact solution. A benchmark test case is then proposed as a synthetic river reach with lateral storage areas controlled by gates. Dimensional analysis is used to establish the regulation parameters influencing the attenuation of the outlet peak discharge. It is also shown that the peak outflow discharge can be reduced by coupling the present simulator with a proportional-integral-derivative regulation algorithm. Finally, a river reach of the Ebro River is simulated with a real flooding scenario.Citation: Morales-Hernandez M., J. Murillo, and P. Garcıa-Navarro (2013), The formulation of internal boundary conditions in unsteady 2-D shallow water flows: application to flood regulation, Water Resour. Res., 49,