The impacts caused by floods years from years affect the planet's surface, therefore, grows the relevance for flood prevention studies. This field aims to reduce, or even avoid, consequences resulting from these natural events. This work seeks to contribute to the area by proposing a model predictive control of dam floodgates in a hydrographic basin. The control strategy is based on hydrological forecasting models obtained with system identification techniques. The developed methodology is applied to a real-world case, the Itajaí River Basin in Brazil, to assess its effectiveness and illustrate the results.