The city of Bandung, as the capital city of West Java, is one of several areas in Indonesia with high rainfall. This situation can cause disasters, such as floods and landslides, that can harm many parties. Rainfall in Indonesia, particularly on the island of Java itself, is closely related to the global phenomenon of Niño 3.4. In the period from January 2001–November 2021, the rainfall and Niño 3.4 showed some extreme values. In order to foresee the disasters, an accurate rainfall forecast should be performed. For this reason, we try to construct a model of rainfall forecast and its relation to the global phenomenon of Niño 3.4 using the nonlinear autoregressive exogenous neural network (NARX NN). The result shows that NARX NN (13-7-1) with a Mean Absolute Percentage Error (MAPE) value of 6.26% and R2 of 85.37% is best suited for the prediction of this phenomenon. In addition, this study provides forecast results for the next six periods, which can be used as a reference for the relevant authorities to foresee the possibility of flooding in Bandung city. From the forecast results, it can be concluded that the highest rainfall forecasts in the city of Bandung are in February 2022, and will slowly decrease in March 2022. To prevent hydro-meteorological disasters, such as floods in Bandung city, the community can clear waterways, such as clogged drains, rivers, and dams, as well as prepare tools for evacuation.